A function defined in GMBullet.yy
btCompoundShape_calculatePrincipalAxisTransform(compoundShape, masses, principal, inertia)
Calculates the principal axis transformation and inertia tensor for the btCompoundShape based on specified masses.
Name | Type | Description |
---|---|---|
compoundShape | Pointer |
A pointer to the btCompoundShape object. |
masses | Array |
An array of masses corresponding to the child shapes of the compound shape. The length of this array should match the number of child shapes. |
principal | Pointer |
A pointer to the btTransform where the calculated principal axis transformation will be stored. |
inertia | Pointer |
A pointer to the btVector3 where the calculated inertia tensor will be stored. |
Copyright © 2024, BlueBurn. Built on October 13, 2024 using GMDoc.