protected override void GetFromAttached()
 {
     transform.position = ReferenceTransform.ToRelPos(AttachedRigidbody.GetPosition());
     transform.rotation = ReferenceTransform.ToRelRot(AttachedRigidbody.GetRotation());
     Velocity           = ReferenceRigidbody.ToRelVel(AttachedRigidbody.GetVelocity(), AttachedRigidbody.GetPosition());
     AngularVelocity    = ReferenceRigidbody.ToRelAngVel(AttachedRigidbody.GetAngularVelocity());
 }
        protected override void GetFromAttached()
        {
            GetFromSector();
            if (!ReferenceTransform)
            {
                return;
            }

            transform.position = ReferenceTransform.ToRelPos(AttachedTransform.position);
            transform.rotation = ReferenceTransform.ToRelRot(AttachedTransform.rotation);
        }
Beispiel #3
0
 protected override void GetFromAttached()
 {
     transform.position = ReferenceTransform.ToRelPos(AttachedTransform.position);
     transform.rotation = ReferenceTransform.ToRelRot(AttachedTransform.rotation);
 }