Defines a 2D 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 | CompoundShape2D |
| A 2D shape type that can reference a group of other 2D shapes (including other compounds). Compound shape overlaps and physics colliders with compound shapes are supported. More...
|
|
Defines a 2D 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.Shape2D.UserTag |
Set a number tag to identify a shape.