PhysicsEngineDestroyGeometry Method |
Removes the specified geometry from the physics world and disposes of it.
Namespace: Demo3D.VisualsAssembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntaxpublic void DestroyGeometry(
PhysicsGeometry geometry
)
Parameters
- geometry PhysicsGeometry
- The geometry to destroy.
Remarks
This is often not required. When assigning new geometry to a body, through setting
Geometry, the old geometry is automatically destroyed. Where
this is useful is where it is required to destroy some geometry that has not yet been
added to a
PhysicsBody.
See Also