Skip to main content

EmbedArguments

A class in Root.Township, the global namespace.

Network state of an Embeddable item: whether it is stuck in something and where, or its scale when free.

Constructors​

MemberWhat it is
EmbedArguments(bool isEmbedded, Vector3 embedPosition, Quaternion embedRotation, NetworkEntity connected, int rigidbodyIndex, float scale)Creates an EmbedArguments with default values.
EmbedArguments()Creates an EmbedArguments with default values.

Fields​

MemberWhat it is
bool hasOtherTrue when embedded in another entity rather than the world.
bool isEmbeddedTrue when the item is stuck in something.
NetworkEntity otherThe entity it is embedded in, if any.
Vector3 positionEmbed position.
int rigidbodyIndexWhich rigidbody of the other entity it is attached to.
Quaternion rotationEmbed rotation.
float scaleThe item's scale. Only sent when not embedded.

Methods​

MemberWhat it is
void Serialize(Stream stream)Reads or writes the state on a network stream.

Used in​

Members of other types that take, return or hold a EmbedArguments: