RealtimeTransformModel
RealtimeTransformModel
Properties
bool useGravity { get; set; }
True if the rigidbody on this transform is using gravity on the simulating client.
bool isKinematic { get; set; }
True if the rigidbody on this transform is kinematic on the simulating client.
bool isSleeping { get; set; }
True if the rigidbody on this transform is sleeping on the simulating client.
bool maintainOwnershipWhileSleeping { get; set; }
True if the rigidbody on this transform shouldn't clear ownership when it sleeps. This is useful for rigidbodies that should never be simulated on different clients, like player objects.
double timestamp { get; }
bool hasTransformChanges { get; }
True if the model has any pending transform changes it needs to send to the datastore.
bool hasPhysicsBodyChanges { get; }
True if the model has any pending physics body changes it needs to send to the datastore.
bool hasPhysicsStateChanges { get; }
True if the model has any pending physics state changes it needs to send to the datastore.
Vector3 position { get; set; }
Quaternion rotation { get; set; }
Vector3 scale { get; set; }
Vector3 velocity { get; set; }
Vector3 angularVelocity { get; set; }
float rotation2D { get; set; }
Vector2 velocity2D { get; set; }
float angularVelocity2D { get; set; }
float physicsBodyTimeOffset { get; set; }
PhysicsState physicsState { get; set; }
float physicsStateTimeOffset { get; set; }
bool syncPosition { get; set; }
bool syncRotation { get; set; }
bool syncScale { get; set; }
bool skipInterpolation { get; set; }
Methods
void SetSafePosition(Vector3 p)
Set the position, while checking for NaN and custom epsilon.
void SetSafeRotation(Quaternion r)
Set the rotation, while checking for NaN and custom epsilon.
void SetSafeRotation2D(float r)
Set the 2D rotation, while checking for NaN.
void SetSafeScale(Vector3 s)
Set the scale, while checking for NaN and custom epsilon.
void SetSafeVelocity(Vector3 v)
Set the velocity, while checking for NaN and custom epsilon.
void SetSafeVelocity2D(Vector2 v)
Set the 2D velocity, while checking for NaN.
void SetSafeAngularVelocity(Vector3 v)
Set the angular velocity, while checking for NaN and custom epsilon.
void SetSafeAngularVelocity2D(float v)
Set the angular velocity, while checking for NaN.