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.
- Listed in Global namespace: E to H
Constructors
| Member | What 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
| Member | What it is |
|---|---|
bool hasOther | True when embedded in another entity rather than the world. |
bool isEmbedded | True when the item is stuck in something. |
NetworkEntity other | The entity it is embedded in, if any. |
Vector3 position | Embed position. |
int rigidbodyIndex | Which rigidbody of the other entity it is attached to. |
Quaternion rotation | Embed rotation. |
float scale | The item's scale. Only sent when not embedded. |
Methods
| Member | What 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: