Defines a 3D shape with Type and data disposed in a union-like structure. All shapes have a UserTag, BroadRadius and Centroid. All non-compound shapes have a LocalTransform and their Centroid always match their local transform position.
More...
|
struct | CompoundShape3D |
| A 3D shape type that can reference a group of other 3D shapes (including other compounds, but not Mesh and Terrain shapes). Compound shape overlaps and physics colliders with compound shapes are supported. More...
|
|
Defines a 3D shape with Type and data disposed in a union-like structure. All shapes have a UserTag, BroadRadius and Centroid. All non-compound shapes have a LocalTransform and their Centroid always match their local transform position.
◆ GetLocalSupport()
Computes a point on the shape which has the highest dot product in a given direction (localDir ), both in the local space of the shape.
- Parameters
-
f | Current frame. |
localDir | The direction, in local space, in which to compute the support point. |
skipNormalize | If the provided direction is already normalized. |
- Returns
- A point, in the local space of the shape, which has the highest dot product in the given direction.
◆ UserTag
UInt16 Quantum.Shape3D.UserTag |
Set a number tag to identify a shape.