KS.Reactor.ksBox Class Reference

Box. More...

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

Public Member Functions

 ksBox (float x, float y, float z)
 Constructs a box with dimensions x, y, z. More...
 
 ksBox (ksVector3 size)
 Constructs a box with ksVector3. More...
 

Properties

ksVector3 Size [get, set]
 Size. More...
 
ksVector3 HalfExtents [get, set]
 Half extents. 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

Box.

Constructor & Destructor Documentation

◆ ksBox() [1/2]

KS.Reactor.ksBox.ksBox ( float  x,
float  y,
float  z 
)

Constructs a box with dimensions x, y, z.

Parameters
xX size.
yY size.
zZ size.

◆ ksBox() [2/2]

KS.Reactor.ksBox.ksBox ( ksVector3  size)

Constructs a box with ksVector3.

Parameters
size

Property Documentation

◆ HalfExtents

ksVector3 KS.Reactor.ksBox.HalfExtents
getset

Half extents.

◆ Size

ksVector3 KS.Reactor.ksBox.Size
getset

Size.