C# Class Nez.Tiled.TiledMapMover.CollisionState

class used to house all the collision information from a call to move
ファイルを表示 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_oe property

public bool becameGroundedThisFrame
return bool

isGroundedOnOneWayPlatform public_oe property

public bool isGroundedOnOneWayPlatform
return bool

right public_oe property

public bool right
return bool

slopeAngle public_oe property

public float slopeAngle
return float

wasGroundedLastFrame public_oe property

public bool wasGroundedLastFrame
return bool