mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-25 14:03:33 -04:00
[Client] Fix rotation sync
This commit is contained in:
parent
0567dc1fd4
commit
6bdc2b2b06
@ -2127,9 +2127,6 @@ void CharacterController::update(float duration)
|
|||||||
movementSettings.mPosition[2] = onground ? 1 : 0;
|
movementSettings.mPosition[2] = onground ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
osg::Vec3f rot = cls.getRotationVector(mPtr);
|
|
||||||
osg::Vec3f vec(movementSettings.asVec3());
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Start of tes3mp addition
|
Start of tes3mp addition
|
||||||
|
|
||||||
@ -2162,6 +2159,9 @@ void CharacterController::update(float duration)
|
|||||||
End of tes3mp addition
|
End of tes3mp addition
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
osg::Vec3f rot = cls.getRotationVector(mPtr);
|
||||||
|
osg::Vec3f vec(movementSettings.asVec3());
|
||||||
|
|
||||||
movementSettings.mSpeedFactor = std::min(vec.length(), 1.f);
|
movementSettings.mSpeedFactor = std::min(vec.length(), 1.f);
|
||||||
vec.normalize();
|
vec.normalize();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user