C# Class Mooege.Core.GS.Actors.ActorUtils

Mostra file Open project: xsochor/mooege

Public Methods

Method Description
CheckRange ( Mooege.Core.GS.Actors.Actor actor, Mooege.Core.GS.Actors.Actor target, float range ) : bool
GetDistance ( Vector3D startPosition, Vector3D targetPosition ) : float
GetDistanceDelta ( float speed, float facingAngle, int ticks = 6 ) : float[]
GetFacingAngle ( Vector3D lookerPosition, Vector3D targetPosition ) : float

Method Details

CheckRange() public static method

public static CheckRange ( Mooege.Core.GS.Actors.Actor actor, Mooege.Core.GS.Actors.Actor target, float range ) : bool
actor Mooege.Core.GS.Actors.Actor
target Mooege.Core.GS.Actors.Actor
range float
return bool

GetDistance() public static method

public static GetDistance ( Vector3D startPosition, Vector3D targetPosition ) : float
startPosition Vector3D
targetPosition Vector3D
return float

GetDistanceDelta() public static method

public static GetDistanceDelta ( float speed, float facingAngle, int ticks = 6 ) : float[]
speed float
facingAngle float
ticks int
return float[]

GetFacingAngle() public static method

public static GetFacingAngle ( Vector3D lookerPosition, Vector3D targetPosition ) : float
lookerPosition Vector3D
targetPosition Vector3D
return float