Superfighters Deluxe
RayCastResult Struct Reference

RayCastResult More...

Public Member Functions

 RayCastResult (bool hit, int objectID, IObject hitObject, bool isPlayer, float fraction, Vector2 position, Vector2 normal)
 

Public Attributes

readonly float Fraction
 Fraction of the input start/end positions. More...
 
readonly bool Hit
 If a hit was registered. More...
 
readonly IObject HitObject
 Hit object. More...
 
readonly bool IsPlayer
 If the hit object is a player. More...
 
readonly Vector2 Normal
 Hit normal. Is Vector2.Zero for results with fraction 0 where the start position overlaps the object if IncludeOverlap is enabled. More...
 
readonly int ObjectID
 Hit object ID. More...
 
readonly Vector2 Position
 Hit position. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ RayCastResult()

RayCastResult ( bool  hit,
int  objectID,
IObject  hitObject,
bool  isPlayer,
float  fraction,
Vector2  position,
Vector2  normal 
)

Parameters
hit
objectID
hitObject
isPlayer
fraction
position
normal

Member Data Documentation

◆ Fraction

readonly float Fraction

Fraction of the input start/end positions.

◆ Hit

readonly bool Hit

If a hit was registered.

◆ HitObject

readonly IObject HitObject

Hit object.

◆ IsPlayer

readonly bool IsPlayer

If the hit object is a player.

◆ Normal

readonly Vector2 Normal

Hit normal. Is Vector2.Zero for results with fraction 0 where the start position overlaps the object if IncludeOverlap is enabled.

◆ ObjectID

readonly int ObjectID

Hit object ID.

◆ Position

readonly Vector2 Position

Hit position.