Skip to content

Commit 2665266

Browse files
committed
Fix Collider:moveKinematic when called on kinematic colliders;
1 parent 53cec5c commit 2665266

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ dev
8787
- Fix `lovr.filesystem.newFile` to search all mounted archives properly.
8888
- Fix `Texture:setPixels` when copying from an `Image` with an offset.
8989
- Fix issue with `Shape:containsPoint`.
90+
- Fix `Collider:moveKinematic` when called on a kinematic collider.
9091

9192
### Deprecate
9293

src/modules/physics/physics.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1691,6 +1691,10 @@ bool lovrColliderSetPose(Collider* collider, float position[3], float orientatio
16911691
}
16921692

16931693
bool lovrColliderMoveKinematic(Collider* collider, float position[3], float orientation[4], float dt) {
1694+
if (lovrColliderIsKinematic(collider)) {
1695+
return true;
1696+
}
1697+
16941698
lovrCheck(dt > 0.f, "dt must > 0");
16951699
lovrCheck(collider->enabled, "Collider must be enabled");
16961700
JPH_BodyInterface* interface = getBodyInterface(collider, WRITE);

0 commit comments

Comments
 (0)