C# Class Pokemon3D.Collisions.Collider

Represents a Collision Shape.
显示文件 Open project: nilllzz/Pokemon3D Class Usage Examples

Public Properties

Property Type Description
OnTriggerEnter Action
OnTriggerLeave Action

Public Methods

Method Description
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.

Private Methods

Method Description
Collider ( ) : System
UpdateBoundings ( ) : void

Method Details

CheckCollision() public method

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

Clone() public method

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

Collider() public method

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
return System

HandleTrigger() public method

public HandleTrigger ( Collider other ) : void
other Collider
return void

HandleUntouched() public method

public HandleUntouched ( ) : void
return void

Intersects() public method

public Intersects ( Collider other ) : bool
other Collider
return bool

Move() public method

Moves Collider.
public Move ( Vector3 offset ) : void
offset Vector3
return void

SetPosition() public method

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

Property Details

OnTriggerEnter public_oe property

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

OnTriggerLeave public_oe property

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