Click or drag to resize

PhysicsEngineCollide(BSphere, IListPhysicsGroup, Boolean) Method

Finds all physics objects prescribed to any of the groups specified in the group list that are intersecting the specified bounding sphere.

Namespace: Demo3D.Visuals
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntax
C#
public IList<PhysicsBody> Collide(
	BSphere bounds,
	IList<PhysicsGroup> groups,
	bool updateAabbs
)

Parameters

bounds  BSphere
The bounding sphere.
groups  IListPhysicsGroup
The group list containing groups that the intersecting physics objects must be prescribed to one or more of.
updateAabbs  Boolean
Whether to update the AABBs for all active bodies before finding collisions.

Return Value

IListPhysicsBody
List of physics objects that are intersecting with the specified bounding sphere and that are prescribed to one or more of the groups in the specified group list.
See Also