C# 클래스 Nez.RaycastHit

파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
centroid Vector2
collider Collider
distance float
fraction float
normal Vector2
point Vector2

공개 메소드들

메소드 설명
RaycastHit ( Collider collider, float fraction, float distance, Vector2 point, Vector2 normal ) : System
ToString ( ) : string

비공개 메소드들

메소드 설명
reset ( ) : void
setValues ( Collider collider, float fraction, float distance, Vector2 point ) : void
setValues ( float fraction, float distance, Vector2 point, Vector2 normal ) : void

메소드 상세

RaycastHit() 공개 메소드

public RaycastHit ( Collider collider, float fraction, float distance, Vector2 point, Vector2 normal ) : System
collider Collider
fraction float
distance float
point Vector2
normal Vector2
리턴 System

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

프로퍼티 상세

centroid 공개적으로 프로퍼티

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

collider 공개적으로 프로퍼티

The collider hit by the ray
public Collider,Nez collider
리턴 Collider

distance 공개적으로 프로퍼티

The distance from the ray origin to the impact point
public float distance
리턴 float

fraction 공개적으로 프로퍼티

Fraction of the distance along the ray that the hit occurred.
public float fraction
리턴 float

normal 공개적으로 프로퍼티

The normal vector of the surface hit by the ray
public Vector2 normal
리턴 Vector2

point 공개적으로 프로퍼티

The point in world space where the ray hit the collider's surface
public Vector2 point
리턴 Vector2