C# Class UnityPlatformer.PlatformerCollider2D.CollisionInfo

Mostrar archivo Open project: llafuente/unity-platformer

Public Properties

Property Type Description
above bool
below bool
climbingSlope bool
contacts Contacts[]
contactsCount int
descendingSlope bool
fallingThroughPlatform bool
lastAboveFrame int
lastBelowFrame int
lastLeftFrame int
lastRightFrame int
left bool
leftIsWall bool
right bool
rightIsWall bool
slope UnityEngine.GameObject
slopeAngle float
slopeDistance float
slopeNormal Vector3
velocity Vector3

Public Methods

Method Description
Clone ( ) : CollisionInfo

Clone

CollisionInfo ( ) : System

Constructor

PushContact ( RaycastHit2D hit, Directions dir ) : void

Add contact to given direction

Reset ( ) : void

Reset current collision object

Method Details

Clone() public method

Clone
public Clone ( ) : CollisionInfo
return CollisionInfo

CollisionInfo() public method

Constructor
public CollisionInfo ( ) : System
return System

PushContact() public method

Add contact to given direction
public PushContact ( RaycastHit2D hit, Directions dir ) : void
hit UnityEngine.RaycastHit2D
dir Directions
return void

Reset() public method

Reset current collision object
public Reset ( ) : void
return void

Property Details

above public_oe property

There is a collision at top
public bool above
return bool

below public_oe property

There is a collision at bottom
public bool below
return bool

climbingSlope public_oe property

Collider is climbing a slope
public bool climbingSlope
return bool

contacts public_oe property

Contact list
public Contacts[] contacts
return Contacts[]

contactsCount public_oe property

Contact counter
public int contactsCount
return int

descendingSlope public_oe property

Collider is descending a slope
public bool descendingSlope
return bool

fallingThroughPlatform public_oe property

Is Collider able to fall through a platform
public bool fallingThroughPlatform
return bool

lastAboveFrame public_oe property

frames since last top collision
public int lastAboveFrame
return int

lastBelowFrame public_oe property

frames since last bottom collision
public int lastBelowFrame
return int

lastLeftFrame public_oe property

frames since last left collision
public int lastLeftFrame
return int

lastRightFrame public_oe property

frames since last right collision
public int lastRightFrame
return int

left public_oe property

There is a collision at left
public bool left
return bool

leftIsWall public_oe property

There is a wall at left
public bool leftIsWall
return bool

right public_oe property

There is a collision at right
public bool right
return bool

rightIsWall public_oe property

There is a wall at right
public bool rightIsWall
return bool

slope public_oe property

Slope GameObject
public GameObject,UnityEngine slope
return UnityEngine.GameObject

slopeAngle public_oe property

Slope angle
public float slopeAngle
return float

slopeDistance public_oe property

Distance to slope
public float slopeDistance
return float

slopeNormal public_oe property

Slope normal
public Vector3 slopeNormal
return Vector3

velocity public_oe property

Real velocity Collider has moved
public Vector3 velocity
return Vector3