Skip to content

Conversation

LordDeatHunter
Copy link

@LordDeatHunter LordDeatHunter commented Sep 8, 2025

I noticed that a lot of SoftBody3D's functionalities are not exposed in the editor.

With this PR, I exposed the already existing bounding box, as well as creating and exposing a separate method for the vertex (point) count.

With the existing point-related methods, you have to specify an index, but as far as I'm aware, there is no way of knowing if the provided index is valid (in bounds) other than running the game and checking for an error:

Index p_index = 500 is out of bounds ((int)shared->mesh_to_physics.size() = 480).
  <C++ Source>  modules\jolt_physics\objects\jolt_soft_body_3d.cpp:695 @ JoltSoftBody3D::get_vertex_position()

@LordDeatHunter LordDeatHunter requested review from a team as code owners September 8, 2025 20:27
@LordDeatHunter LordDeatHunter force-pushed the expose-existing-softbody-methods branch from 97e1f8f to bcff724 Compare September 9, 2025 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants