The base settings for building a Shape2D.
More...
|
| FP? | CapsuleExtent [get] |
| | The capsule extent is the distance from the center of the capsule to some of the spheres' centers. More...
|
| |
| FP? | CapsuleRadius [get] |
| | The capsule radius is half the size of the capsule size on the X-Axis. More...
|
| |
The base settings for building a Shape2D.
◆ CreateShape()
◆ Materialize()
| void Quantum.Shape2DConfig.Materialize |
( |
FrameBase |
f, |
|
|
ref Shape2D |
shape, |
|
|
in PrototypeMaterializationContext |
context |
|
) |
| |
|
inline |
◆ Copy()
Copies all the shape config values to anothere shape config.
- Parameters
-
| from | The shape config that will be copied. |
| to | The shape config that will receive the other values. |
- Returns
- Returns true if the first argument is different from null.
◆ ShapeType
◆ PolygonCollider
◆ CircleRadius
The radius of the circle.
◆ CapsuleSize
The capsule size is a vector two. The x-axis is the diameter of the capsule and the y-axis is the size of the capsule from the top end to the bottom end.
◆ CapsuleDirection
The direction that the capsule sides extend
◆ EdgeExtent
The length of the edge from the center to the right or left end.
◆ BoxExtents
The vector that represents the extents of the box in each axis.
◆ PositionOffset
| FPVector2 Quantum.Shape2DConfig.PositionOffset |
The position offset of the shape.
◆ RotationOffset
| FP Quantum.Shape2DConfig.RotationOffset |
The rotation offset of the shape.
◆ UserTag
| UInt16 Quantum.Shape2DConfig.UserTag |
The user tag to identify the compound shape during the collision event.
◆ IsPersistent
| Boolean Quantum.Shape2DConfig.IsPersistent = true |
This flag means the buffer of shapes is allocated in the memory. It will be free when the component is removed from the entity.
Only persistent compound shapes are supported on the editor.
◆ CompoundShapes
The configuration array of each shape in the compound that will be allocated.
◆ IsScaledBySourceCollider
| bool Quantum.Shape2DConfig.IsScaledBySourceCollider |
If the settings are already expressed in final (world) scale and must not be scaled by the prototype transform again. Set when the settings are baked from a source collider.
◆ CapsuleRadius
| FP? Quantum.Shape2DConfig.CapsuleRadius |
|
get |
The capsule radius is half the size of the capsule size on the X-Axis.
◆ CapsuleExtent
| FP? Quantum.Shape2DConfig.CapsuleExtent |
|
get |
The capsule extent is the distance from the center of the capsule to some of the spheres' centers.