C# Class ManicDigger.CharacterPhysics

显示文件 Open project: GlennMR/800Craft-Client Class Usage Examples

Public Properties

Property Type Description
WaterGravityMultiplier float
characterheight float
enable_acceleration bool
gravity float
reachedceiling bool
reachedwall bool
swimmingtop bool
walldistance float

Public Methods

Method Description
Move ( CharacterPhysicsState state, MoveInfo move, double dt, bool &soundnow, Vector3 push ) : void
WallSlide ( CharacterPhysicsState state, Vector3 oldposition, Vector3 newposition ) : Vector3

Private Methods

Method Description
IsTileEmptyForPhysics ( int x, int y, int z ) : bool
MakeCloserToZero ( float a, float b ) : float

Method Details

Move() public method

public Move ( CharacterPhysicsState state, MoveInfo move, double dt, bool &soundnow, Vector3 push ) : void
state CharacterPhysicsState
move MoveInfo
dt double
soundnow bool
push Vector3
return void

WallSlide() public method

public WallSlide ( CharacterPhysicsState state, Vector3 oldposition, Vector3 newposition ) : Vector3
state CharacterPhysicsState
oldposition Vector3
newposition Vector3
return Vector3

Property Details

WaterGravityMultiplier public_oe property

public float WaterGravityMultiplier
return float

characterheight public_oe static_oe property

public static float characterheight
return float

enable_acceleration public_oe property

public bool enable_acceleration
return bool

gravity public_oe property

public float gravity
return float

reachedceiling public_oe property

public bool reachedceiling
return bool

reachedwall public_oe property

public bool reachedwall
return bool

swimmingtop public_oe property

public bool swimmingtop
return bool

walldistance public_oe static_oe property

public static float walldistance
return float