Class PhysicsShapeCylinder
Hierarchy
- PhysicsShape
- PhysicsShapeCylinder
Index
Constructors
constructor
Parameters
pointA: Vector3
Starting point that defines the cylinder segment
pointB: Vector3
ending point of that same segment
radius: number
radius
scene: Scene
scene to attach to
Returns PhysicsShapeCylinder
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
Derive an approximate cylinder from the transform node. Note, this is not the optimal bounding cylinder.
Parameters
mesh: AbstractMesh
Returns PhysicsShapeCylinder
Helper object to create a cylinder shape