Capsule. More...
Public Member Functions | |
ksCapsule (float radius, float height, Axis alignment) | |
Constructs a capsule aligned along an axis. More... | |
Properties | |
float | Radius [get, set] |
Radius. More... | |
float | Height [get, set] |
Height. More... | |
float | CylinderHalfHeight [get, set] |
Half height of the cylinder part. More... | |
Axis | Alignment [get, set] |
Alignment. More... | |
![]() | |
ShapeTypes | Type [get] |
Type of shape. More... | |
bool | IsQueryShape [get] |
Is the shape usable in scene queries? More... | |
Additional Inherited Members | |
![]() | |
enum class | ShapeTypes : int { NO_COLLIDER = int.MaxValue , SPHERE = 0 , BOX = 1 , CAPSULE = 2 , PLANE = 3 , CYLINDER = 4 , CONE = 5 , CONVEX_MESH = 6 , TRIANGLE_MESH = 7 , HEIGHT_FIELD = 8 , CAPSULE_CONTROLLER = 9 } |
Support shapes for scene queries. More... | |
enum class | Axis { X = 0 , Y = 1 , Z = 2 } |
Axis used for revolute shapes (capsule, cylinder, cones). More... | |
![]() | |
ShapeTypes | m_shapeType = ShapeTypes.NO_COLLIDER |
Capsule.
KS.Reactor.ksCapsule.ksCapsule | ( | float | radius, |
float | height, | ||
Axis | alignment | ||
) |
Constructs a capsule aligned along an axis.
radius | Raidus. |
height | Total height including caps. |
alignment | Axis. |
|
getset |
Alignment.
|
getset |
Half height of the cylinder part.
|
getset |
Height.
|
getset |
Radius.