Click or drag to resize

PhysicsEngineDestroyGeometry Method

Removes the specified geometry from the physics world and disposes of it.

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public void DestroyGeometry(
	PhysicsGeometry geometry
)

Parameters

geometry
Type: Demo3D.VisualsPhysicsGeometry
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