Click or drag to resize
SpriteBaseIsPointBlocked 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
Syntax
C#
public virtual bool IsPointBlocked(
	RelativePosition TestPoint,
	SpriteBaseDirection Direction,
	int Distance
)

Parameters

TestPoint
Type: (Default Namespace)RelativePosition
Point within the sprite from which the test is performed
Direction
Type: (Default Namespace)SpriteBaseDirection
Direction relative to TestPoint which will be tested for solidity
Distance
Type: SystemInt32
How many pixels to check for solidity from the test point

Return Value

Type: Boolean
True if there is solidity within Distance pixels of TestPoint, false otherwise.
See Also