KS.Reactor.ksCapsule Class Reference

Capsule. More...

Inheritance diagram for KS.Reactor.ksCapsule:
KS.Reactor.ksShape

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...
 
- Properties inherited from KS.Reactor.ksShape
ShapeTypes Type [get]
 Type of shape. More...
 
bool IsQueryShape [get]
 Is the shape usable in scene queries? More...
 

Additional Inherited Members

- Public Types inherited from KS.Reactor.ksShape
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...
 
- Protected Attributes inherited from KS.Reactor.ksShape
ShapeTypes m_shapeType = ShapeTypes.NO_COLLIDER
 

Detailed Description

Capsule.

Constructor & Destructor Documentation

◆ ksCapsule()

KS.Reactor.ksCapsule.ksCapsule ( float  radius,
float  height,
Axis  alignment 
)

Constructs a capsule aligned along an axis.

Parameters
radiusRaidus.
heightTotal height including caps.
alignmentAxis.

Property Documentation

◆ Alignment

Axis KS.Reactor.ksCapsule.Alignment
getset

Alignment.

◆ CylinderHalfHeight

float KS.Reactor.ksCapsule.CylinderHalfHeight
getset

Half height of the cylinder part.

◆ Height

float KS.Reactor.ksCapsule.Height
getset

Height.

◆ Radius

float KS.Reactor.ksCapsule.Radius
getset

Radius.