C# Class Nez.Tiled.TiledMapMover.CollisionState

class used to house all the collision information from a call to move
Show file Open project: prime31/Nez

Public Properties

Property Type Description
becameGroundedThisFrame bool
isGroundedOnOneWayPlatform bool
right bool
slopeAngle float
wasGroundedLastFrame bool

Public Methods

Method Description
ToString ( ) : string
clearLastGroundTile ( ) : void
reset ( ) : void
reset ( Vector2 &motion ) : void

resets collision state and does sub-pixel movement calculations

Method Details

ToString() public method

public ToString ( ) : string
return string

clearLastGroundTile() public method

public clearLastGroundTile ( ) : void
return void

reset() public method

public reset ( ) : void
return void

reset() public method

resets collision state and does sub-pixel movement calculations
public reset ( Vector2 &motion ) : void
motion Vector2 Motion.
return void

Property Details

becameGroundedThisFrame public property

public bool becameGroundedThisFrame
return bool

isGroundedOnOneWayPlatform public property

public bool isGroundedOnOneWayPlatform
return bool

right public property

public bool right
return bool

slopeAngle public property

public float slopeAngle
return float

wasGroundedLastFrame public property

public bool wasGroundedLastFrame
return bool