C# 클래스 Pokemon3D.Collisions.Collider

Represents a Collision Shape.
파일 보기 프로젝트 열기: nilllzz/Pokemon3D 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
OnTriggerEnter Action
OnTriggerLeave Action

공개 메소드들

메소드 설명
CheckCollision ( Collider other ) : CollisionResult

Checks collision to another object.

Clone ( ) : Collider

Creates a clone of another collider.

Collider ( Vector3 size, Vector3 centerOffset = null, bool isTrigger = false ) : System

Creates a bounding box collider.

HandleTrigger ( Collider other ) : void
HandleUntouched ( ) : void
Intersects ( Collider other ) : bool
Move ( Vector3 offset ) : void

Moves Collider.

SetPosition ( Vector3 position ) : void

Sets position of Collider.

비공개 메소드들

메소드 설명
Collider ( ) : System
UpdateBoundings ( ) : void

메소드 상세

CheckCollision() 공개 메소드

Checks collision to another object.
public CheckCollision ( Collider other ) : CollisionResult
other Collider
리턴 Pokemon3D.Common.CollisionResult

Clone() 공개 메소드

Creates a clone of another collider.
public Clone ( ) : Collider
리턴 Collider

Collider() 공개 메소드

Creates a bounding box collider.
public Collider ( Vector3 size, Vector3 centerOffset = null, bool isTrigger = false ) : System
size Vector3 size of Bounding Box
centerOffset Vector3 Offset from center of object
isTrigger bool
리턴 System

HandleTrigger() 공개 메소드

public HandleTrigger ( Collider other ) : void
other Collider
리턴 void

HandleUntouched() 공개 메소드

public HandleUntouched ( ) : void
리턴 void

Intersects() 공개 메소드

public Intersects ( Collider other ) : bool
other Collider
리턴 bool

Move() 공개 메소드

Moves Collider.
public Move ( Vector3 offset ) : void
offset Vector3
리턴 void

SetPosition() 공개 메소드

Sets position of Collider.
public SetPosition ( Vector3 position ) : void
position Vector3
리턴 void

프로퍼티 상세

OnTriggerEnter 공개적으로 프로퍼티

Will be called when the collider enters a trigger zone.
public Action OnTriggerEnter
리턴 Action

OnTriggerLeave 공개적으로 프로퍼티

Will be called when the collider leaves the trigger zone.
public Action OnTriggerLeave
리턴 Action