C# Class idTech4.Game.Physics.idPhysics_Player

Simulates the motion of a player through the environment. Input from the player is used to allow a certain degree of control over the motion.
Inheritance: idPhysics_Actor
Mostrar archivo Open project: iainmckay/idtech4.net Class Usage Examples

Public Methods

Method Description
ApplyImpulse ( int id, Vector3 point, Vector3 impulse ) : void
ClearPushedVelocity ( ) : void
Evaluate ( int timeStep, int endTime ) : bool
GetImpactInfo ( int id, Vector3 point ) : ImpactInfo
GetLinearVelocity ( int id ) : Vector3
GetPushedLinearVelocity ( int id ) : Vector3
ReadFromSnapshot ( idBitMsgDelta msg ) : void
RestoreState ( ) : void
Rotate ( idRotation rotation, int id = 1 ) : void
SaveState ( ) : void
SetAxis ( Matrix axis, int id = -1 ) : void
SetLinearVelocity ( Vector3 velocity, int id ) : void
SetMaster ( idEntity master, bool orientated = true ) : void
SetOrigin ( Vector3 origin, int id = -1 ) : void
SetPushed ( int deltaTime ) : void
Translate ( Vector3 translation, int id = -1 ) : void
UpdateTime ( int endTime ) : void
WriteToSnapshot ( idBitMsgDelta msg ) : void
idPhysics_Player ( ) : System

Method Details

ApplyImpulse() public method

public ApplyImpulse ( int id, Vector3 point, Vector3 impulse ) : void
id int
point Vector3
impulse Vector3
return void

ClearPushedVelocity() public method

public ClearPushedVelocity ( ) : void
return void

Evaluate() public method

public Evaluate ( int timeStep, int endTime ) : bool
timeStep int
endTime int
return bool

GetImpactInfo() public method

public GetImpactInfo ( int id, Vector3 point ) : ImpactInfo
id int
point Vector3
return ImpactInfo

GetLinearVelocity() public method

public GetLinearVelocity ( int id ) : Vector3
id int
return Vector3

GetPushedLinearVelocity() public method

public GetPushedLinearVelocity ( int id ) : Vector3
id int
return Vector3

ReadFromSnapshot() public method

public ReadFromSnapshot ( idBitMsgDelta msg ) : void
msg idBitMsgDelta
return void

RestoreState() public method

public RestoreState ( ) : void
return void

Rotate() public method

public Rotate ( idRotation rotation, int id = 1 ) : void
rotation idRotation
id int
return void

SaveState() public method

public SaveState ( ) : void
return void

SetAxis() public method

public SetAxis ( Matrix axis, int id = -1 ) : void
axis Matrix
id int
return void

SetLinearVelocity() public method

public SetLinearVelocity ( Vector3 velocity, int id ) : void
velocity Vector3
id int
return void

SetMaster() public method

public SetMaster ( idEntity master, bool orientated = true ) : void
master idEntity
orientated bool
return void

SetOrigin() public method

public SetOrigin ( Vector3 origin, int id = -1 ) : void
origin Vector3
id int
return void

SetPushed() public method

public SetPushed ( int deltaTime ) : void
deltaTime int
return void

Translate() public method

public Translate ( Vector3 translation, int id = -1 ) : void
translation Vector3
id int
return void

UpdateTime() public method

public UpdateTime ( int endTime ) : void
endTime int
return void

WriteToSnapshot() public method

public WriteToSnapshot ( idBitMsgDelta msg ) : void
msg idBitMsgDelta
return void

idPhysics_Player() public method

public idPhysics_Player ( ) : System
return System