C# Класс 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.
Наследование: idPhysics_Actor
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

ApplyImpulse() публичный Метод

public ApplyImpulse ( int id, Vector3 point, Vector3 impulse ) : void
id int
point Vector3
impulse Vector3
Результат void

ClearPushedVelocity() публичный Метод

public ClearPushedVelocity ( ) : void
Результат void

Evaluate() публичный Метод

public Evaluate ( int timeStep, int endTime ) : bool
timeStep int
endTime int
Результат bool

GetImpactInfo() публичный Метод

public GetImpactInfo ( int id, Vector3 point ) : ImpactInfo
id int
point Vector3
Результат ImpactInfo

GetLinearVelocity() публичный Метод

public GetLinearVelocity ( int id ) : Vector3
id int
Результат Vector3

GetPushedLinearVelocity() публичный Метод

public GetPushedLinearVelocity ( int id ) : Vector3
id int
Результат Vector3

ReadFromSnapshot() публичный Метод

public ReadFromSnapshot ( idBitMsgDelta msg ) : void
msg idBitMsgDelta
Результат void

RestoreState() публичный Метод

public RestoreState ( ) : void
Результат void

Rotate() публичный Метод

public Rotate ( idRotation rotation, int id = 1 ) : void
rotation idRotation
id int
Результат void

SaveState() публичный Метод

public SaveState ( ) : void
Результат void

SetAxis() публичный Метод

public SetAxis ( Matrix axis, int id = -1 ) : void
axis Matrix
id int
Результат void

SetLinearVelocity() публичный Метод

public SetLinearVelocity ( Vector3 velocity, int id ) : void
velocity Vector3
id int
Результат void

SetMaster() публичный Метод

public SetMaster ( idEntity master, bool orientated = true ) : void
master idEntity
orientated bool
Результат void

SetOrigin() публичный Метод

public SetOrigin ( Vector3 origin, int id = -1 ) : void
origin Vector3
id int
Результат void

SetPushed() публичный Метод

public SetPushed ( int deltaTime ) : void
deltaTime int
Результат void

Translate() публичный Метод

public Translate ( Vector3 translation, int id = -1 ) : void
translation Vector3
id int
Результат void

UpdateTime() публичный Метод

public UpdateTime ( int endTime ) : void
endTime int
Результат void

WriteToSnapshot() публичный Метод

public WriteToSnapshot ( idBitMsgDelta msg ) : void
msg idBitMsgDelta
Результат void

idPhysics_Player() публичный Метод

public idPhysics_Player ( ) : System
Результат System