mirror of
https://github.com/overte-org/overte.git
synced 2025-07-10 18:58:37 +02:00
restore setFlag in simulateKinematicMotion()
This commit is contained in:
parent
a53cb2e532
commit
a08ab8e127
1 changed files with 1 additions and 1 deletions
|
@ -979,7 +979,7 @@ void EntityItem::simulateKinematicMotion(float timeElapsed, bool setFlags) {
|
||||||
transform.setTranslation(position);
|
transform.setTranslation(position);
|
||||||
setLocalTransformAndVelocities(transform, linearVelocity, angularVelocity);
|
setLocalTransformAndVelocities(transform, linearVelocity, angularVelocity);
|
||||||
|
|
||||||
if (!isMoving) {
|
if (setFlags && !isMoving) {
|
||||||
// flag this entity to transition from KINEMATIC to STATIC
|
// flag this entity to transition from KINEMATIC to STATIC
|
||||||
_dirtyFlags |= Simulation::DIRTY_MOTION_TYPE;
|
_dirtyFlags |= Simulation::DIRTY_MOTION_TYPE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue