mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
don't do simple kinematic simulation on things that have parents
This commit is contained in:
parent
d09d16082e
commit
5375fdd0f0
1 changed files with 3 additions and 0 deletions
|
@ -888,6 +888,9 @@ void EntityItem::simulateKinematicMotion(float timeElapsed, bool setFlags) {
|
|||
if (hasActions()) {
|
||||
return;
|
||||
}
|
||||
if (!_parentID.isNull()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (hasLocalAngularVelocity()) {
|
||||
glm::vec3 localAngularVelocity = getLocalAngularVelocity();
|
||||
|
|
Loading…
Reference in a new issue