1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix shape always being zero with get_rest_info when using Jolt Physics

(cherry picked from commit 4b5661758f)
This commit is contained in:
Mikael Hermansson
2025-03-25 12:35:01 +01:00
committed by Rémi Verschelde
parent 46f16271e2
commit 00baf18d6e

View File

@@ -790,7 +790,6 @@ bool JoltPhysicsDirectSpaceState3D::rest_info(const ShapeParameters &p_parameter
r_info->normal = to_godot(-hit.mPenetrationAxis.Normalized()); r_info->normal = to_godot(-hit.mPenetrationAxis.Normalized());
r_info->rid = object->get_rid(); r_info->rid = object->get_rid();
r_info->collider_id = object->get_instance_id(); r_info->collider_id = object->get_instance_id();
r_info->shape = 0;
r_info->linear_velocity = object->get_velocity_at_position(hit_point); r_info->linear_velocity = object->get_velocity_at_position(hit_point);
return true; return true;