PhysicsEngineCollides Method (PhysicsGroup, PhysicsGroup, Boolean) |
Specifies whether physics objects prescribing to groupA should
collide with physics objects prescribing to groupB.
Namespace:
Demo3D.Visuals
Assembly:
Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntaxpublic void Collides(
PhysicsGroup groupA,
PhysicsGroup groupB,
bool shouldCollide
)
Parameters
- groupA
- Type: Demo3D.VisualsPhysicsGroup
The first group. - groupB
- Type: Demo3D.VisualsPhysicsGroup
The second group. - shouldCollide
- Type: SystemBoolean
Whether physics objects prescribing to the first group should be tested for collisions against physics objects prescribing to the second group.
Remarks
This specifies a symmetric relationship so that specifying `Collides(A, B, true)`
implies also that `Collides(B, A, true)`. It is not assumed that `Collides(A, A) = true`
by default.
See Also