unreal.KBoxElem
¶
- class unreal.KBoxElem¶
Bases:
KShapeElem
Box shape used for collision
C++ Source:
Module: Engine
File: BoxElem.h
Editor Properties: (see get_editor_property/set_editor_property)
center
(Vector): [Read-Write] Position of the box’s origincollision_enabled
(CollisionEnabled): [Read-Write] Course per-primitive collision filtering. This allows for individual primitives tobe toggled in and out of sim and query collision without changing filtering details.
contribute_to_mass
(bool): [Read-Write] True if this shape should contribute to the overall mass of the body itbelongs to. This lets you create extra collision volumes which do not affect the mass properties of an object.
name
(Name): [Read-Write] User-defined name for this shaperest_offset
(float): [Read-Write] Offset used when generating contact points. This allows you to smooth outthe Minkowski sum by radius R. Useful for making objects slide smoothly on top of irregularities
rotation
(Rotator): [Read-Write] Rotation of the boxx
(float): [Read-Write] Extent of the box along the y-axisy
(float): [Read-Write] Extent of the box along the y-axisz
(float): [Read-Write] Extent of the box along the z-axis