Corgi Engine
v9.0
|
The various states you can use to check if your character is doing something at the current frame More...
Public Member Functions | |
virtual void | Reset () |
Reset all collision states to false More... | |
override string | ToString () |
Serializes the collision states More... | |
Public Attributes | |
float | DistanceToLeftCollider |
returns the distance to the left collider, equals -1 if not colliding left More... | |
float | DistanceToRightCollider |
returns the distance to the right collider, equals -1 if not colliding right More... | |
Properties | |
bool | IsCollidingRight [get, set] |
is the character colliding right ? More... | |
bool | IsCollidingLeft [get, set] |
is the character colliding left ? More... | |
bool | IsCollidingAbove [get, set] |
is the character colliding with something above it ? More... | |
bool | IsCollidingBelow [get, set] |
is the character colliding with something above it ? More... | |
virtual bool | HasCollisions [get] |
is the character colliding with anything ? More... | |
float | LateralSlopeAngle [get, set] |
returns the slope angle met horizontally More... | |
float | BelowSlopeAngle [get, set] |
returns the slope the character is moving on angle More... | |
Vector2 | BlowSlopeNormal [get, set] |
returns the normal of the slope the character is currently on More... | |
float | BelowSlopeAngleAbsolute [get, set] |
returns the slope the character is moving on angle, relative to Vector2.Up, from 0 to 360 More... | |
bool | SlopeAngleOK [get, set] |
returns true if the slope angle is ok to walk on More... | |
bool | OnAMovingPlatform [get, set] |
returns true if the character is standing on a moving platform More... | |
virtual bool | IsGrounded [get] |
Is the character grounded ? More... | |
bool | IsFalling [get, set] |
is the character falling right now ? More... | |
bool | IsJumping [get, set] |
is the character falling right now ? More... | |
bool | WasGroundedLastFrame [get, set] |
was the character grounded last frame ? More... | |
bool | WasTouchingTheCeilingLastFrame [get, set] |
was the character grounded last frame ? More... | |
bool | JustGotGrounded [get, set] |
did the character just become grounded ? More... | |
bool | ColliderResized [get, set] |
is the character being resized to fit in tight spaces? More... | |
bool | TouchingLevelBounds [get, set] |
is the character touching level bounds? More... | |
The various states you can use to check if your character is doing something at the current frame
|
virtual |
Reset all collision states to false
override string MoreMountains.CorgiEngine.CorgiControllerState.ToString | ( | ) |
Serializes the collision states
float MoreMountains.CorgiEngine.CorgiControllerState.DistanceToLeftCollider |
returns the distance to the left collider, equals -1 if not colliding left
float MoreMountains.CorgiEngine.CorgiControllerState.DistanceToRightCollider |
returns the distance to the right collider, equals -1 if not colliding right
|
getset |
returns the slope the character is moving on angle
|
getset |
returns the slope the character is moving on angle, relative to Vector2.Up, from 0 to 360
|
getset |
returns the normal of the slope the character is currently on
|
getset |
is the character being resized to fit in tight spaces?
|
get |
is the character colliding with anything ?
|
getset |
is the character colliding with something above it ?
|
getset |
is the character colliding with something above it ?
|
getset |
is the character colliding left ?
|
getset |
is the character colliding right ?
|
getset |
is the character falling right now ?
|
get |
Is the character grounded ?
|
getset |
is the character falling right now ?
|
getset |
did the character just become grounded ?
|
getset |
returns the slope angle met horizontally
|
getset |
returns true if the character is standing on a moving platform
|
getset |
returns true if the slope angle is ok to walk on
|
getset |
is the character touching level bounds?
|
getset |
was the character grounded last frame ?
|
getset |
was the character grounded last frame ?