NetworkedJointDrivenRig
A class in Root.Township, the global namespace.
Syncs the rotations of a rig's rigidbody bones from the server; clients steer each bone toward its target with torque rather than setting it.
- Listed in Global namespace: M to O
- Inherits or implements
NetworkEntityBehaviour,INetworkSerialized - Attributes
ProfileNetworkSerialized
Constructors
| Member | What it is |
|---|---|
NetworkedJointDrivenRig() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
| Member | What it is |
|---|---|
static AccumulativeAverageCount prepareForWriteTimer | Shared timing stats for PrepareForWrite. |
static AccumulativeAverageCount serializeTimer | Shared timing stats for Serialize. |
7 private and internal fields
Properties
| Member | What it is |
|---|---|
bool IsHandlingRemote { get; set; } | Whether clients drive the bones. Nothing in this build sets it. |
3 private and internal properties
| Member | What it is |
|---|---|
private int Alta.Networking.INetworkSerialized.MaximumBits { get; } | 33 bits per bone. |
private AccumulativeAverageCount Alta.Networking.INetworkSerialized.PrepareForWriteTimer { get; } | Returns the shared prepareForWriteTimer. |
private AccumulativeAverageCount Alta.Networking.INetworkSerialized.SerializeTimer { get; } | Returns the shared serializeTimer. |
Methods
| Member | What it is |
|---|---|
bool PrepareForWrite(bool isWriteFull) | Flags bones that turned at least angleThreshold since last sent. |
void Serialize(Stream stream, bool isWriteFull) | Writes or reads a flag and compressed rotation for each bone. |