C# Class UnityPlatformer.PlatformerCollider2D.CollisionInfo

Afficher le fichier Open project: llafuente/unity-platformer

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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 méthode

Clone
public Clone ( ) : CollisionInfo
Résultat CollisionInfo

CollisionInfo() public méthode

Constructor
public CollisionInfo ( ) : System
Résultat System

PushContact() public méthode

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

Reset() public méthode

Reset current collision object
public Reset ( ) : void
Résultat void

Property Details

above public_oe property

There is a collision at top
public bool above
Résultat bool

below public_oe property

There is a collision at bottom
public bool below
Résultat bool

climbingSlope public_oe property

Collider is climbing a slope
public bool climbingSlope
Résultat bool

contacts public_oe property

Contact list
public Contacts[] contacts
Résultat Contacts[]

contactsCount public_oe property

Contact counter
public int contactsCount
Résultat int

descendingSlope public_oe property

Collider is descending a slope
public bool descendingSlope
Résultat bool

fallingThroughPlatform public_oe property

Is Collider able to fall through a platform
public bool fallingThroughPlatform
Résultat bool

lastAboveFrame public_oe property

frames since last top collision
public int lastAboveFrame
Résultat int

lastBelowFrame public_oe property

frames since last bottom collision
public int lastBelowFrame
Résultat int

lastLeftFrame public_oe property

frames since last left collision
public int lastLeftFrame
Résultat int

lastRightFrame public_oe property

frames since last right collision
public int lastRightFrame
Résultat int

left public_oe property

There is a collision at left
public bool left
Résultat bool

leftIsWall public_oe property

There is a wall at left
public bool leftIsWall
Résultat bool

right public_oe property

There is a collision at right
public bool right
Résultat bool

rightIsWall public_oe property

There is a wall at right
public bool rightIsWall
Résultat bool

slope public_oe property

Slope GameObject
public GameObject,UnityEngine slope
Résultat UnityEngine.GameObject

slopeAngle public_oe property

Slope angle
public float slopeAngle
Résultat float

slopeDistance public_oe property

Distance to slope
public float slopeDistance
Résultat float

slopeNormal public_oe property

Slope normal
public Vector3 slopeNormal
Résultat Vector3

velocity public_oe property

Real velocity Collider has moved
public Vector3 velocity
Résultat Vector3