diff options
| author | Andrea Catania | 2018-02-16 19:06:00 +0100 |
|---|---|---|
| committer | Andrea Catania | 2018-02-20 12:43:47 +0100 |
| commit | 6ed392f47a1970f7815f6f76b7bacfd0bb51b87c (patch) | |
| tree | e380ae9cc66729978344ba74a62b9546439cbdf7 /modules/bullet/bullet_physics_server.cpp | |
| parent | da612c324cec8c4f6bfcef9b35406ea215e699f6 (diff) | |
| download | godot-6ed392f47a1970f7815f6f76b7bacfd0bb51b87c.tar.gz godot-6ed392f47a1970f7815f6f76b7bacfd0bb51b87c.tar.zst godot-6ed392f47a1970f7815f6f76b7bacfd0bb51b87c.zip | |
Diffstat (limited to 'modules/bullet/bullet_physics_server.cpp')
| -rw-r--r-- | modules/bullet/bullet_physics_server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/bullet/bullet_physics_server.cpp b/modules/bullet/bullet_physics_server.cpp index b646fc164..595e4951a 100644 --- a/modules/bullet/bullet_physics_server.cpp +++ b/modules/bullet/bullet_physics_server.cpp @@ -825,12 +825,12 @@ PhysicsDirectBodyState *BulletPhysicsServer::body_get_direct_state(RID p_body) { return BulletPhysicsDirectBodyState::get_singleton(body); } -bool BulletPhysicsServer::body_test_motion(RID p_body, const Transform &p_from, const Vector3 &p_motion, MotionResult *r_result) { +bool BulletPhysicsServer::body_test_motion(RID p_body, const Transform &p_from, const Vector3 &p_motion, bool p_infinite_inertia, MotionResult *r_result) { RigidBodyBullet *body = rigid_body_owner.get(p_body); ERR_FAIL_COND_V(!body, false); ERR_FAIL_COND_V(!body->get_space(), false); - return body->get_space()->test_body_motion(body, p_from, p_motion, r_result); + return body->get_space()->test_body_motion(body, p_from, p_motion, p_infinite_inertia, r_result); } RID BulletPhysicsServer::soft_body_create(bool p_init_sleeping) { |
