C# Класс BEPUphysics.Entities.Entity

Superclass of movable rigid bodies. Contains information for both dynamic and kinematic simulation.
Наследование: IBroadPhaseEntryOwner, IDeferredEventCreatorOwner, ISimulationIslandMemberOwner, ICCDPositionUpdateable, IForceUpdateable, ISpaceObject, IMaterialOwner, ICollisionRulesOwner
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
collisionInformation BEPUphysics.BroadPhaseEntries.MobileCollidables.EntityCollidable
locker BEPUutilities.SpinLock

Private Properties

Свойство Тип Описание
ICCDPositionUpdateable void
ICCDPositionUpdateable void
IForceUpdateable void
IPositionUpdateable void
ISpaceObject void
InitializeId void
OnMaterialChanged void

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

Метод Описание
ApplyAngularImpulse ( Vector3 &impulse ) : void

Applies an angular velocity change to the entity using the given impulse. This method does not wake up the object or perform any other nonessential operation; it is meant to be used for performance-sensitive constraint solving. Consider equivalently adding to the AngularMomentum property for convenience instead.

ApplyImpulse ( Vector3 location, Vector3 impulse ) : void

Applies an impulse to the entity.

ApplyLinearImpulse ( Vector3 &impulse ) : void

Applies a linear velocity change to the entity using the given impulse. This method does not wake up the object or perform any other nonessential operation; it is meant to be used for performance-sensitive constraint solving. Consider equivalently adding to the LinearMomentum property for convenience instead.

BecomeDynamic ( float mass ) : void

Forces the entity to become dynamic. Dynamic entities respond to collisions and have finite mass and inertia.

BecomeDynamic ( float mass, Matrix3x3 localInertiaTensor ) : void

Forces the entity to become dynamic. Dynamic entities respond to collisions and have finite mass and inertia.

BecomeKinematic ( ) : void

Forces the entity to become kinematic. Kinematic entities have infinite mass and inertia.

Entity ( EntityCollidable collisionInformation ) : System

Constructs a new kinematic entity.

Entity ( EntityCollidable collisionInformation, float mass ) : System

Constructs a new dynamic entity.

Entity ( EntityCollidable collisionInformation, float mass, Matrix3x3 inertiaTensor ) : System

Constructs a new dynamic entity.

Entity ( EntityCollidable collisionInformation, float mass, Matrix3x3 inertiaTensor, float volume ) : System

Constructs a new dynamic entity.

Entity ( EntityShape shape ) : System

Constructs a new kinematic entity.

Entity ( EntityShape shape, float mass ) : System

Constructs a new dynamic entity.

Entity ( EntityShape shape, float mass, Matrix3x3 inertiaTensor ) : System

Constructs a new dynamic entity.

Entity ( EntityShape shape, float mass, Matrix3x3 inertiaTensor, float volume ) : System

Constructs a new dynamic entity.

GetHashCode ( ) : int
ModifyAngularDamping ( float damping ) : void

Temporarily adjusts the angular damping by an amount. After the value is used, the damping returns to the base value.

ModifyLinearDamping ( float damping ) : void

Temporarily adjusts the linear damping by an amount. After the value is used, the damping returns to the base value.

ToString ( ) : string

Защищенные методы

Метод Описание
Entity ( ) : System
Initialize ( EntityCollidable collisionInformation ) : void
Initialize ( EntityCollidable collisionInformation, float mass ) : void
Initialize ( EntityCollidable collisionInformation, float mass, Matrix3x3 inertiaTensor ) : void
Initialize ( EntityCollidable collisionInformation, float mass, Matrix3x3 inertiaTensor, float volume ) : void
OnAdditionToSpace ( ISpace newSpace ) : void
OnRemovalFromSpace ( ISpace oldSpace ) : void
OnShapeChanged ( BEPUphysics.CollisionShapes.CollisionShape shape ) : void

Приватные методы

Метод Описание
ICCDPositionUpdateable ( ) : void
ICCDPositionUpdateable ( float dt ) : void
IForceUpdateable ( float dt ) : void
IPositionUpdateable ( float dt ) : void
ISpaceObject ( ISpace newSpace ) : void
InitializeId ( ) : void
OnMaterialChanged ( BEPUphysics.Materials.Material newMaterial ) : void

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

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

Applies an angular velocity change to the entity using the given impulse. This method does not wake up the object or perform any other nonessential operation; it is meant to be used for performance-sensitive constraint solving. Consider equivalently adding to the AngularMomentum property for convenience instead.
public ApplyAngularImpulse ( Vector3 &impulse ) : void
impulse Vector3 Impulse to apply.
Результат void

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

Applies an impulse to the entity.
public ApplyImpulse ( Vector3 location, Vector3 impulse ) : void
location Vector3 Location to apply the impulse.
impulse Vector3 Impulse to apply.
Результат void

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

Applies a linear velocity change to the entity using the given impulse. This method does not wake up the object or perform any other nonessential operation; it is meant to be used for performance-sensitive constraint solving. Consider equivalently adding to the LinearMomentum property for convenience instead.
public ApplyLinearImpulse ( Vector3 &impulse ) : void
impulse Vector3 Impulse to apply.
Результат void

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

Forces the entity to become dynamic. Dynamic entities respond to collisions and have finite mass and inertia.
public BecomeDynamic ( float mass ) : void
mass float Mass to use for the entity.
Результат void

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

Forces the entity to become dynamic. Dynamic entities respond to collisions and have finite mass and inertia.
public BecomeDynamic ( float mass, Matrix3x3 localInertiaTensor ) : void
mass float Mass to use for the entity.
localInertiaTensor BEPUutilities.Matrix3x3 Inertia tensor to use for the entity.
Результат void

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

Forces the entity to become kinematic. Kinematic entities have infinite mass and inertia.
public BecomeKinematic ( ) : void
Результат void

Entity() защищенный Метод

protected Entity ( ) : System
Результат System

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

Constructs a new kinematic entity.
public Entity ( EntityCollidable collisionInformation ) : System
collisionInformation BEPUphysics.BroadPhaseEntries.MobileCollidables.EntityCollidable Collidable to use with the entity.
Результат System

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

Constructs a new dynamic entity.
public Entity ( EntityCollidable collisionInformation, float mass ) : System
collisionInformation BEPUphysics.BroadPhaseEntries.MobileCollidables.EntityCollidable Collidable to use with the entity.
mass float Mass of the entity.
Результат System

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

Constructs a new dynamic entity.
public Entity ( EntityCollidable collisionInformation, float mass, Matrix3x3 inertiaTensor ) : System
collisionInformation BEPUphysics.BroadPhaseEntries.MobileCollidables.EntityCollidable Collidable to use with the entity.
mass float Mass of the entity.
inertiaTensor BEPUutilities.Matrix3x3 Inertia tensor of the entity.
Результат System

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

Constructs a new dynamic entity.
public Entity ( EntityCollidable collisionInformation, float mass, Matrix3x3 inertiaTensor, float volume ) : System
collisionInformation BEPUphysics.BroadPhaseEntries.MobileCollidables.EntityCollidable Collidable to use with the entity.
mass float Mass of the entity.
inertiaTensor BEPUutilities.Matrix3x3 Inertia tensor of the entity.
volume float Volume of the entity.
Результат System

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

Constructs a new kinematic entity.
public Entity ( EntityShape shape ) : System
shape BEPUphysics.CollisionShapes.EntityShape Shape to use with the entity.
Результат System

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

Constructs a new dynamic entity.
public Entity ( EntityShape shape, float mass ) : System
shape BEPUphysics.CollisionShapes.EntityShape Shape to use with the entity.
mass float Mass of the entity.
Результат System

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

Constructs a new dynamic entity.
public Entity ( EntityShape shape, float mass, Matrix3x3 inertiaTensor ) : System
shape BEPUphysics.CollisionShapes.EntityShape Shape to use with the entity.
mass float Mass of the entity.
inertiaTensor BEPUutilities.Matrix3x3 Inertia tensor of the entity.
Результат System

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

Constructs a new dynamic entity.
public Entity ( EntityShape shape, float mass, Matrix3x3 inertiaTensor, float volume ) : System
shape BEPUphysics.CollisionShapes.EntityShape Shape to use with the entity.
mass float Mass of the entity.
inertiaTensor BEPUutilities.Matrix3x3 Inertia tensor of the entity.
volume float Volume of the entity.
Результат System

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

public GetHashCode ( ) : int
Результат int

Initialize() защищенный Метод

protected Initialize ( EntityCollidable collisionInformation ) : void
collisionInformation BEPUphysics.BroadPhaseEntries.MobileCollidables.EntityCollidable
Результат void

Initialize() защищенный Метод

protected Initialize ( EntityCollidable collisionInformation, float mass ) : void
collisionInformation BEPUphysics.BroadPhaseEntries.MobileCollidables.EntityCollidable
mass float
Результат void

Initialize() защищенный Метод

protected Initialize ( EntityCollidable collisionInformation, float mass, Matrix3x3 inertiaTensor ) : void
collisionInformation BEPUphysics.BroadPhaseEntries.MobileCollidables.EntityCollidable
mass float
inertiaTensor BEPUutilities.Matrix3x3
Результат void

Initialize() защищенный Метод

protected Initialize ( EntityCollidable collisionInformation, float mass, Matrix3x3 inertiaTensor, float volume ) : void
collisionInformation BEPUphysics.BroadPhaseEntries.MobileCollidables.EntityCollidable
mass float
inertiaTensor BEPUutilities.Matrix3x3
volume float
Результат void

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

Temporarily adjusts the angular damping by an amount. After the value is used, the damping returns to the base value.
public ModifyAngularDamping ( float damping ) : void
damping float Damping to add.
Результат void

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

Temporarily adjusts the linear damping by an amount. After the value is used, the damping returns to the base value.
public ModifyLinearDamping ( float damping ) : void
damping float Damping to add.
Результат void

OnAdditionToSpace() защищенный Метод

protected OnAdditionToSpace ( ISpace newSpace ) : void
newSpace ISpace
Результат void

OnRemovalFromSpace() защищенный Метод

protected OnRemovalFromSpace ( ISpace oldSpace ) : void
oldSpace ISpace
Результат void

OnShapeChanged() защищенный Метод

protected OnShapeChanged ( BEPUphysics.CollisionShapes.CollisionShape shape ) : void
shape BEPUphysics.CollisionShapes.CollisionShape
Результат void

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

public ToString ( ) : string
Результат string

Описание свойств

collisionInformation защищенное свойство

protected EntityCollidable,BEPUphysics.BroadPhaseEntries.MobileCollidables collisionInformation
Результат BEPUphysics.BroadPhaseEntries.MobileCollidables.EntityCollidable

locker защищенное свойство

Gets the synchronization object used by systems that need exclusive access to the entity's properties.
protected SpinLock,BEPUutilities locker
Результат BEPUutilities.SpinLock