CollisionMaskGetRectangularMask Method |
Retrieve a solid rectangular collision mask of the specified size
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public static CollisionMask GetRectangularMask(
Size size
)
Parameters
- size
- Type: System.DrawingSize
Size of the mask
Return Value
Type:
CollisionMaskA rectangular masks is used when testing a collision
between a sprite that has a mask and a sprite that doesn't.
Once a rectangualar mask is generated, it is cached and returned for
all requests for a mask of the same size. These
masks are generally based on the solidity size of the sprite that
does not have the mask (mask alpha level = 0).
See Also