C# Class Nez.RaycastHit

Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
centroid Vector2
collider Collider
distance float
fraction float
normal Vector2
point Vector2

Méthodes publiques

Méthode Description
RaycastHit ( Collider collider, float fraction, float distance, Vector2 point, Vector2 normal ) : System
ToString ( ) : string

Private Methods

Méthode Description
reset ( ) : void
setValues ( Collider collider, float fraction, float distance, Vector2 point ) : void
setValues ( float fraction, float distance, Vector2 point, Vector2 normal ) : void

Method Details

RaycastHit() public méthode

public RaycastHit ( Collider collider, float fraction, float distance, Vector2 point, Vector2 normal ) : System
collider Collider
fraction float
distance float
point Vector2
normal Vector2
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

centroid public_oe property

The centroid of the primitive used to perform the cast. Where the shape would be positioned for it to contact.
public Vector2 centroid
Résultat Vector2

collider public_oe property

The collider hit by the ray
public Collider,Nez collider
Résultat Collider

distance public_oe property

The distance from the ray origin to the impact point
public float distance
Résultat float

fraction public_oe property

Fraction of the distance along the ray that the hit occurred.
public float fraction
Résultat float

normal public_oe property

The normal vector of the surface hit by the ray
public Vector2 normal
Résultat Vector2

point public_oe property

The point in world space where the ray hit the collider's surface
public Vector2 point
Résultat Vector2