Click or drag to resize

PhysicsEngineCollide Method (PhysicsBody, PhysicsGroup, Boolean)

Finds all physics bodies prescribed to the specified group that are colliding with the specified body.

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public IList<PhysicsBody> Collide(
	PhysicsBody body,
	PhysicsGroup group,
	bool updateAabbs
)

Parameters

body
Type: Demo3D.VisualsPhysicsBody
The physics body to check for collisions against.
group
Type: Demo3D.VisualsPhysicsGroup
The group that any colliding physics bodies must be prescribed to.
updateAabbs
Type: SystemBoolean
Whether to update the AABBs for all active bodies before finding collisions.

Return Value

Type: IListPhysicsBody
List of physics bodies that are colliding with the specified body and that are prescribed to the specified group.
Remarks
This method looks for any bodies that are prescribed to the specified group and that are colliding with the specified body. The usual group filtering is ignored.
See Also