PhysicsEngineCollides(IListPhysicsGroup, IListPhysicsGroup) Method |
Whether physics objects prescribing to any of the groups in
groupListA are tested for collisions against physics objects
prescribing to any of the groups in groupListB.
Namespace: Demo3D.VisualsAssembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntaxpublic bool Collides(
IList<PhysicsGroup> groupListA,
IList<PhysicsGroup> groupListB
)
Parameters
- groupListA IListPhysicsGroup
- The first group list.
- groupListB IListPhysicsGroup
- The second group list.
Return Value
BooleanTrue if any of the groups in the first group list are specified to collide with any of the groups in the second group list, false otherwise.
Remarks
This method effectively computes the boolean OR of the cartesian product of the two
group lists. For example, Collides([A, B], [C, D]) is true if and only if Collides(A, C)
OR Collides(A, D) OR Collides(B, C) OR Collides(B, D).
See Also