Restore zero'ing RawVelocity in BSCharacter.ZeroMotion() in favour of not calling ZeroMotion in SetPhysicalProperties() at all

SetPhysicalProperties is only called when adding a new character so it looks like there is no existing data to reset anyway.
mb-throttle-test
Justin Clark-Casey (justincc) 2014-11-29 01:13:48 +00:00
parent dfab60a7fd
commit 79e37e5ecc
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,6 @@ public sealed class BSCharacter : BSPhysObject
{ {
PhysScene.PE.RemoveObjectFromWorld(PhysScene.World, PhysBody); PhysScene.PE.RemoveObjectFromWorld(PhysScene.World, PhysBody);
ZeroMotion(true);
ForcePosition = RawPosition; ForcePosition = RawPosition;
// Set the velocity // Set the velocity
@ -269,6 +268,7 @@ public sealed class BSCharacter : BSPhysObject
// Called at taint time! // Called at taint time!
public override void ZeroMotion(bool inTaintTime) public override void ZeroMotion(bool inTaintTime)
{ {
RawVelocity = OMV.Vector3.Zero;
_acceleration = OMV.Vector3.Zero; _acceleration = OMV.Vector3.Zero;
_rotationalVelocity = OMV.Vector3.Zero; _rotationalVelocity = OMV.Vector3.Zero;