SpriteBase.IsPointBlocked Method |
Determines if the specified point within a sprite is blocked from moving in a particular direction by the specified number of pixels.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntaxpublic virtual bool IsPointBlocked(
RelativePosition TestPoint,
SpriteBase. Direction Direction,
int Distance
)
Parameters
- TestPoint
- Type: (Default Namespace).RelativePosition
Point within the sprite from which the test is performed - Direction
- Type: (Default Namespace).SpriteBase.Direction
Direction relative to TestPoint which will be tested for solidity - Distance
- Type: System.Int32
How many pixels to check for solidity from the test point
Return Value
Type:
BooleanTrue if there is solidity within Distance pixels of TestPoint, false otherwise.
See Also