CollisionMaskTestCollisionWith Method |
Determine if this mask is colliding with the specified target mask
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public bool TestCollisionWith(
CollisionMask target,
int offsetX,
int offsetY
)
Parameters
- target
- Type: (Default Namespace)CollisionMask
Mask to test against - offsetX
- Type: SystemInt32
Horizontal offset from this mask's position to the target mask's position - offsetY
- Type: SystemInt32
Vertical offset from this mask's position to the target mask's position
Return Value
Type:
BooleanTrue if solid bits in the masks collide when positioned at the specified offset
See Also