Click or drag to resize

PhysicsEngineCollide(PhysicsBody, PhysicsGroup, Boolean) Method

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: 19.01.00
Syntax
C#
public IList<PhysicsBody> Collide(
	PhysicsBody body,
	PhysicsGroup group,
	bool updateAabbs
)

Parameters

body  PhysicsBody
The physics body to check for collisions against.
group  PhysicsGroup
The group that any colliding physics bodies must be prescribed to.
updateAabbs  Boolean
Whether to update the AABBs for all active bodies before finding collisions.

Return Value

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