Click or drag to resize

PhysicsEngineCountBodies Method (PredicatePhysicsBody)

Counts the number of bodies in the physics world matching the provided predicate.

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public int CountBodies(
	Predicate<PhysicsBody> predicate
)

Parameters

predicate
Type: SystemPredicatePhysicsBody
The predicate.

Return Value

Type: Int32
The number of bodies.
See Also