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.
This commit is contained in:
Justin Clark-Casey (justincc)
2014-11-29 01:13:48 +00:00
parent dfab60a7fd
commit 79e37e5ecc

View File

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