The base settings for building a Shape3D.
More...
The base settings for building a Shape3D.
◆ CreateShape()
◆ Materialize()
| void Quantum.Shape3DConfig.Materialize |
( |
FrameBase |
f, |
|
|
ref Shape3D |
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
◆ SphereRadius
The radius of the sphere.
◆ CapsuleRadius
The radius of the capsule.
◆ CapsuleHeight
| FP Quantum.Shape3DConfig.CapsuleHeight = FP._2 |
The size of the capsule from the top end to the bottom end.
◆ CapsuleDirection
The direction that the capsule height extends
◆ CapsuleExtent
The capsule extent is the distance from the center of the capsule to some of the spheres' centers.
◆ PositionOffset
| FPVector3 Quantum.Shape3DConfig.PositionOffset |
The position offset of the shape.
◆ BoxExtents
The vector that represents the extents of the box in each axis.
◆ RotationOffset
| FPVector3 Quantum.Shape3DConfig.RotationOffset |
The rotation offset of the shape.
◆ UserTag
| UInt16 Quantum.Shape3DConfig.UserTag |
The user tag to identify the compound shape during the collision event.
◆ IsPersistent
| Boolean Quantum.Shape3DConfig.IsPersistent = true |
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.Shape3DConfig.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.