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
parent
dfab60a7fd
commit
79e37e5ecc
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue