TrueSync
|
TSTransform2D.cs
169 transform.position = Vector3.Lerp(transform.position, position.ToVector(), Time.deltaTime * DELTA_TIME_FACTOR);
170 transform.rotation = Quaternion.Lerp(transform.rotation, Quaternion.Euler(0, 0, rotation.AsFloat()), Time.deltaTime * DELTA_TIME_FACTOR);
171 transform.localScale = Vector3.Lerp(transform.localScale, scale.ToVector(), Time.deltaTime * DELTA_TIME_FACTOR);
174 transform.position = (position + tsCollider.Body.TSLinearVelocity * Time.deltaTime * DELTA_TIME_FACTOR).ToVector();
175 transform.rotation = Quaternion.Lerp(transform.rotation, Quaternion.Euler(0, 0, rotation.AsFloat()), Time.deltaTime * DELTA_TIME_FACTOR);
176 transform.localScale = Vector3.Lerp(transform.localScale, scale.ToVector(), Time.deltaTime * DELTA_TIME_FACTOR);
InterpolateMode interpolation
Interpolation mode that should be used.
Definition: TSRigidBody2D.cs:138
A deterministic version of Unity's Transform component for 2D physics.
Definition: TSTransform2D.cs:9
bool IsBodyInitialized
Returns true if the body was already initialized.
Definition: TSCollider2D.cs:252
void Initialize()
Initializes internal properties based on whether there is a TSCollider2D attached.
Definition: TSTransform2D.cs:120
Definition: LayerCollisionMatrix.cs:3
TSVector2 ScaledCenter
Returns a version of collider's center scaled by parent's transform.
Definition: TSCollider2D.cs:95
Generated by
