How to change dynamically the center of mass

0

Seems that the center of mass is linked to mesh pivot and so static.

Is there a way to change the center of mass?

I'm interested especially on something that also works with no mesh, but using with primitive shapes.

demandé il y a 7 ans182 vues
5 réponses
0
Réponse acceptée

@REDACTEDUSER

Thank you for the question.

Although Lumberyard has get mass position Entity.GetCenterofMassPos() in Script binding, we don't currently have set mass position function avialable. That's been said, there is no set function to set center of mass without involving authoring codes. ( in this case is Script binding function, and base line Physic code exploring ) The team is consistently working on improving the Physic system but we don't have ETA for the specific request that you asked.

Please let us know your feedback while exploring the solution in your project.

Thanks.

répondu il y a 7 ans
0

I tryed to change the way shapes calculate inertia tensor, but with no luck as it doesn't really care about what it is set to.

répondu il y a 7 ans
0

This will be incredibly important for working on entities with more advanced physics as in most cases the center of mass cannot be coincident with the object origin/pivot, which is critical to certain entities such as vehicles and aircraft. This would seem to be because the object origin/pivot is also the point of rotation and therefore moving the center of mass would necessitate that the point of rotation move as well. I would say this is an absolutely critical feature.

Regards, Uriah

répondu il y a 7 ans
0

Thanks @REDACTEDUSER

répondu il y a 7 ans
0

Thanks for this perspective @REDACTEDUSER

répondu il y a 7 ans

Cette publication est fermée : l'ajout de nouvelles réponses, commentaires et votes est désactivé.