C# Class idTech4.Game.Physics.idPhysics_Base

Physics base for a moving object using one or more collision models.
Inheritance: idPhysics
Afficher le fichier Open project: iainmckay/idtech4.net

Protected Properties

Свойство Type Description
_clipMask ContentFlags
_contactEntities List
_contacts List
_gravityNormal Vector3
_gravityVector Vector3
_self idEntity

Méthodes publiques

Méthode Description
Activate ( ) : void
AddContactEntity ( idEntity entity ) : void
AddForce ( int id, Vector3 point, Vector3 force ) : void
ApplyImpulse ( int id, Vector3 point, Vector3 impulse ) : void
ClearContacts ( ) : void
ClipContents ( idClipModel model ) : ContentFlags
ClipRotation ( idRotation rotation, idClipModel model ) : TraceResult
ClipTranslation ( Vector3 translation, idClipModel model ) : TraceResult
DisableClip ( ) : void
EnableClip ( ) : void
Evaluate ( int timeStep, int endTime ) : bool
EvaluateContacts ( ) : bool
GetAbsoluteBounds ( int id = -1 ) : idBounds
GetAngularVelocity ( int id ) : Vector3
GetAxis ( int id ) : Matrix
GetBounds ( int id = -1 ) : idBounds
GetClipMask ( int id = -1 ) : ContentFlags
GetClipModel ( int id ) : idClipModel
GetContact ( int index ) : ContactInfo
GetContents ( int id = -1 ) : ContentFlags
GetImpactInfo ( int id, Vector3 point ) : ImpactInfo
GetLinearVelocity ( int id ) : Vector3
GetMass ( int id = -1 ) : float
GetOrigin ( int id ) : Vector3
GetPushedAngularVelocity ( int id ) : Vector3
GetPushedLinearVelocity ( int id ) : Vector3
IsGroundClipModel ( int index, int id ) : bool
IsGroundEntity ( int index ) : bool
LinkClip ( ) : void
PutToRest ( ) : void
ReadFromSnapshot ( idBitMsgDelta msg ) : void
RemoveContactEntity ( idEntity entity ) : void
Restore ( object saveFile ) : void
RestoreState ( ) : void
Rotate ( idRotation rotation, int id = 1 ) : void
Save ( object saveFile ) : void
SaveState ( ) : void
SetAngularVelocity ( Vector3 velocity, int id ) : void
SetAxis ( Matrix axis, int id = -1 ) : void
SetClipMask ( ContentFlags mask, int id = -1 ) : void
SetClipModel ( idClipModel model, float density, int id, bool disposeOld = true ) : void
SetContents ( ContentFlags contents, int id = -1 ) : void
SetLinearVelocity ( Vector3 velocity, int id ) : void
SetMass ( float mass, int id = -1 ) : 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
UnlinkClip ( ) : void
UpdateTime ( int endTime ) : void
WriteToSnapshot ( idBitMsgDelta msg ) : void
idPhysics_Base ( ) : System

Méthodes protégées

Méthode Description
ActivateContactEntities ( ) : void

Active all contact entities.

AddContactEntitiesForContacts ( ) : void

Add contact entity links to contact entities.

AddGroundContacts ( idClipModel clipModel ) : void
AddGroupContacts ( idClipModel clipModel ) : void

Add ground contacts for the clip model.

Dispose ( bool disposing ) : void
DrawVelocity ( int id, float linearScale, float angularScale ) : void

Draw linear and angular velocity.

Method Details

Activate() public méthode

public Activate ( ) : void
Résultat void

ActivateContactEntities() protected méthode

Active all contact entities.
protected ActivateContactEntities ( ) : void
Résultat void

AddContactEntitiesForContacts() protected méthode

Add contact entity links to contact entities.
protected AddContactEntitiesForContacts ( ) : void
Résultat void

AddContactEntity() public méthode

public AddContactEntity ( idEntity entity ) : void
entity idEntity
Résultat void

AddForce() public méthode

public AddForce ( int id, Vector3 point, Vector3 force ) : void
id int
point Vector3
force Vector3
Résultat void

AddGroundContacts() protected méthode

protected AddGroundContacts ( idClipModel clipModel ) : void
clipModel idClipModel
Résultat void

AddGroupContacts() protected méthode

Add ground contacts for the clip model.
protected AddGroupContacts ( idClipModel clipModel ) : void
clipModel idClipModel
Résultat void

ApplyImpulse() public méthode

public ApplyImpulse ( int id, Vector3 point, Vector3 impulse ) : void
id int
point Vector3
impulse Vector3
Résultat void

ClearContacts() public méthode

public ClearContacts ( ) : void
Résultat void

ClipContents() public méthode

public ClipContents ( idClipModel model ) : ContentFlags
model idClipModel
Résultat ContentFlags

ClipRotation() public méthode

public ClipRotation ( idRotation rotation, idClipModel model ) : TraceResult
rotation idRotation
model idClipModel
Résultat idTech4.Collision.TraceResult

ClipTranslation() public méthode

public ClipTranslation ( Vector3 translation, idClipModel model ) : TraceResult
translation Vector3
model idClipModel
Résultat idTech4.Collision.TraceResult

DisableClip() public méthode

public DisableClip ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

DrawVelocity() protected méthode

Draw linear and angular velocity.
protected DrawVelocity ( int id, float linearScale, float angularScale ) : void
id int
linearScale float
angularScale float
Résultat void

EnableClip() public méthode

public EnableClip ( ) : void
Résultat void

Evaluate() public méthode

public Evaluate ( int timeStep, int endTime ) : bool
timeStep int
endTime int
Résultat bool

EvaluateContacts() public méthode

public EvaluateContacts ( ) : bool
Résultat bool

GetAbsoluteBounds() public méthode

public GetAbsoluteBounds ( int id = -1 ) : idBounds
id int
Résultat idBounds

GetAngularVelocity() public méthode

public GetAngularVelocity ( int id ) : Vector3
id int
Résultat Vector3

GetAxis() public méthode

public GetAxis ( int id ) : Matrix
id int
Résultat Matrix

GetBounds() public méthode

public GetBounds ( int id = -1 ) : idBounds
id int
Résultat idBounds

GetClipMask() public méthode

public GetClipMask ( int id = -1 ) : ContentFlags
id int
Résultat ContentFlags

GetClipModel() public méthode

public GetClipModel ( int id ) : idClipModel
id int
Résultat idClipModel

GetContact() public méthode

public GetContact ( int index ) : ContactInfo
index int
Résultat idTech4.Collision.ContactInfo

GetContents() public méthode

public GetContents ( int id = -1 ) : ContentFlags
id int
Résultat ContentFlags

GetImpactInfo() public méthode

public GetImpactInfo ( int id, Vector3 point ) : ImpactInfo
id int
point Vector3
Résultat ImpactInfo

GetLinearVelocity() public méthode

public GetLinearVelocity ( int id ) : Vector3
id int
Résultat Vector3

GetMass() public méthode

public GetMass ( int id = -1 ) : float
id int
Résultat float

GetOrigin() public méthode

public GetOrigin ( int id ) : Vector3
id int
Résultat Vector3

GetPushedAngularVelocity() public méthode

public GetPushedAngularVelocity ( int id ) : Vector3
id int
Résultat Vector3

GetPushedLinearVelocity() public méthode

public GetPushedLinearVelocity ( int id ) : Vector3
id int
Résultat Vector3

IsGroundClipModel() public méthode

public IsGroundClipModel ( int index, int id ) : bool
index int
id int
Résultat bool

IsGroundEntity() public méthode

public IsGroundEntity ( int index ) : bool
index int
Résultat bool

LinkClip() public méthode

public LinkClip ( ) : void
Résultat void

PutToRest() public méthode

public PutToRest ( ) : void
Résultat void

ReadFromSnapshot() public méthode

public ReadFromSnapshot ( idBitMsgDelta msg ) : void
msg idBitMsgDelta
Résultat void

RemoveContactEntity() public méthode

public RemoveContactEntity ( idEntity entity ) : void
entity idEntity
Résultat void

Restore() public méthode

public Restore ( object saveFile ) : void
saveFile object
Résultat void

RestoreState() public méthode

public RestoreState ( ) : void
Résultat void

Rotate() public méthode

public Rotate ( idRotation rotation, int id = 1 ) : void
rotation idRotation
id int
Résultat void

Save() public méthode

public Save ( object saveFile ) : void
saveFile object
Résultat void

SaveState() public méthode

public SaveState ( ) : void
Résultat void

SetAngularVelocity() public méthode

public SetAngularVelocity ( Vector3 velocity, int id ) : void
velocity Vector3
id int
Résultat void

SetAxis() public méthode

public SetAxis ( Matrix axis, int id = -1 ) : void
axis Matrix
id int
Résultat void

SetClipMask() public méthode

public SetClipMask ( ContentFlags mask, int id = -1 ) : void
mask ContentFlags
id int
Résultat void

SetClipModel() public méthode

public SetClipModel ( idClipModel model, float density, int id, bool disposeOld = true ) : void
model idClipModel
density float
id int
disposeOld bool
Résultat void

SetContents() public méthode

public SetContents ( ContentFlags contents, int id = -1 ) : void
contents ContentFlags
id int
Résultat void

SetLinearVelocity() public méthode

public SetLinearVelocity ( Vector3 velocity, int id ) : void
velocity Vector3
id int
Résultat void

SetMass() public méthode

public SetMass ( float mass, int id = -1 ) : void
mass float
id int
Résultat void

SetMaster() public méthode

public SetMaster ( idEntity master, bool orientated = true ) : void
master idEntity
orientated bool
Résultat void

SetOrigin() public méthode

public SetOrigin ( Vector3 origin, int id = -1 ) : void
origin Vector3
id int
Résultat void

SetPushed() public méthode

public SetPushed ( int deltaTime ) : void
deltaTime int
Résultat void

Translate() public méthode

public Translate ( Vector3 translation, int id = -1 ) : void
translation Vector3
id int
Résultat void

UnlinkClip() public méthode

public UnlinkClip ( ) : void
Résultat void

UpdateTime() public méthode

public UpdateTime ( int endTime ) : void
endTime int
Résultat void

WriteToSnapshot() public méthode

public WriteToSnapshot ( idBitMsgDelta msg ) : void
msg idBitMsgDelta
Résultat void

idPhysics_Base() public méthode

public idPhysics_Base ( ) : System
Résultat System

Property Details

_clipMask protected_oe property

protected ContentFlags _clipMask
Résultat ContentFlags

_contactEntities protected_oe property

protected List _contactEntities
Résultat List

_contacts protected_oe property

protected List _contacts
Résultat List

_gravityNormal protected_oe property

protected Vector3 _gravityNormal
Résultat Vector3

_gravityVector protected_oe property

protected Vector3 _gravityVector
Résultat Vector3

_self protected_oe property

protected idEntity _self
Résultat idEntity