瀏覽代碼

Merge pull request #104599 from mihe/jolt/rest-info-shape-index

Fix `shape` always being zero with `get_rest_info` when using Jolt Physics
Rémi Verschelde 5 月之前
父節點
當前提交
b699508b07
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      modules/jolt_physics/spaces/jolt_physics_direct_space_state_3d.cpp

+ 0 - 1
modules/jolt_physics/spaces/jolt_physics_direct_space_state_3d.cpp

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