mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-04-15 11:42:23 +00:00
Revert "DebugTeleportInfoMessage: use WarpToPositionRotation"
This reverts commit 01332e3ad24d67fc9cf506be57328470acaad6c8.
This commit is contained in:
parent
8a1b5ab2fc
commit
7c7a3e6423
@ -71,12 +71,10 @@ public class DebugTeleportInfoMessage : QSBMessage
|
||||
var refBody = qsbSector.AttachedObject.GetOWRigidbody();
|
||||
|
||||
var pos = refBody.transform.FromRelPos(RelPos);
|
||||
body.WarpToPositionRotation(
|
||||
pos,
|
||||
refBody.transform.FromRelRot(RelRot)
|
||||
);
|
||||
body.SetPosition(pos);
|
||||
body.SetRotation(refBody.transform.FromRelRot(RelRot));
|
||||
Locator.GetPlayerCameraController().SetDegreesY(DegreesY);
|
||||
body.SetVelocity(refBody.FromRelVel(RelVel, pos));
|
||||
body.SetAngularVelocity(refBody.FromRelAngVel(RelAngVel));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user