MovingOverworldObject.CheckHit Method

MyDungeon

MovingOverworldObjectCheckHit Method

Checks if entity is blocked by an object on the blocking layer in a desired direction

Namespace:  MyDungeon.Entities
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
protected virtual void CheckHit(
	Vector2 start,
	Vector2 end,
	out RaycastHit2D hit
)

Parameters

start
Type: Vector2
Entity's current position
end
Type: Vector2
Entity's desired position
hit
Type: RaycastHit2D
Output result of the Linecast
See Also