You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to dynamically change the mass of a cube (dynamic RigidBody) gliding on a tilted floor (fixed RigidBody). I explicitely create the cube with a mass and use setAdditionalMass() method to update the mass through a leva control.
The issue is that the mass variations don't affect the animation of the cube physics, although the RigidBody reference seems to be correctly updated with my new mass values.
The expectation is for seeing an acceleration of the cube gliding while increasing its mass, and a deceleration while decreasing it.
I am looking for insights into why this might be happening and how to resolve it, because I couldn't find any demo about mass handling in the github repo. Is there a specific configuration that I am missing, or could this be a potential bug in the library ? Any help or guidance would be greatly appreciated.
Thank you!
The text was updated successfully, but these errors were encountered:
I need to dynamically change the mass of a cube (dynamic RigidBody) gliding on a tilted floor (fixed RigidBody). I explicitely create the cube with a mass and use setAdditionalMass() method to update the mass through a leva control.
The issue is that the mass variations don't affect the animation of the cube physics, although the RigidBody reference seems to be correctly updated with my new mass values.
Here's my full code snippet:
The expectation is for seeing an acceleration of the cube gliding while increasing its mass, and a deceleration while decreasing it.
I am looking for insights into why this might be happening and how to resolve it, because I couldn't find any demo about mass handling in the github repo. Is there a specific configuration that I am missing, or could this be a potential bug in the library ? Any help or guidance would be greatly appreciated.
Thank you!
The text was updated successfully, but these errors were encountered: