Class PhysicsShapeBox
Hierarchy
- PhysicsShape
- PhysicsShapeBox
Index
Constructors
constructor
Parameters
center: Vector3
local center of the sphere
rotation: Quaternion
local orientation
extents: Vector3
size of the box in each direction
scene: Scene
scene to attach to
Returns PhysicsShapeBox
Properties
_plugin DataSearch playground for _pluginData
V2 Physics plugin private data for single shape
Accessors
type
Returns ShapeType
Methods
add ChildSearch playground for addChild
Parameters
newChild: PhysicsShape
childTransform: TransformNode
Returns void
disposeSearch playground for dispose
Returns void
get Bounding BoxSearch playground for getBoundingBox
Returns BoundingBox
get DensitySearch playground for getDensity
Returns number
get Filter LayerSearch playground for getFilterLayer
Returns number
get MaterialSearch playground for getMaterial
Returns undefined | PhysicsMaterial
get Num ChildrenSearch playground for getNumChildren
Returns number
remove ChildSearch playground for removeChild
Parameters
childIndex: number
Returns void
set DensitySearch playground for setDensity
Parameters
density: number
Returns void
set Filter LayerSearch playground for setFilterLayer
Parameters
layer: number
Returns void
set MaterialSearch playground for setMaterial
Parameters
material: PhysicsMaterial
Returns void
Static From MeshSearch playground for FromMesh
Parameters
mesh: AbstractMesh
Returns PhysicsShapeBox
PhysicsShapeBox
Helper object to create a box shape