C# 클래스 Nez.CollisionResult

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

공개 프로퍼티들

프로퍼티 타입 설명
collider Collider
minimumTranslationVector Vector2
normal Vector2
point Vector2

공개 메소드들

메소드 설명
ToString ( ) : string
invertResult ( ) : void

inverts the normal and MTV

removeHorizontalTranslation ( Vector2 deltaMovement ) : void

alters the minimumTranslationVector so that it removes the x-component of the translation if there was no movement in the same direction.

메소드 상세

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

invertResult() 공개 메소드

inverts the normal and MTV
public invertResult ( ) : void
리턴 void

removeHorizontalTranslation() 공개 메소드

alters the minimumTranslationVector so that it removes the x-component of the translation if there was no movement in the same direction.
public removeHorizontalTranslation ( Vector2 deltaMovement ) : void
deltaMovement Vector2 the original movement that caused the collision
리턴 void

프로퍼티 상세

collider 공개적으로 프로퍼티

the collider that was collided with
public Collider,Nez collider
리턴 Collider

minimumTranslationVector 공개적으로 프로퍼티

The translation to apply to the first shape to push the shapes appart
public Vector2 minimumTranslationVector
리턴 Vector2

normal 공개적으로 프로퍼티

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

point 공개적으로 프로퍼티

not used for all collisions types! Check the ShapeCollisions class before relying on this field!
public Vector2 point
리턴 Vector2