![]() |
Jypeli 4
The simple game programming library
|
A physics logic is a way for the engine to effect object within the Update call. Gravity is a Example of a PhysicsLogic. Lisää...
Suojatut jäsenfunktiot | |
| PhysicsLogic (Lifespan lifetime) | |
| abstract internal void | RunLogic (TimeStep step) |
| virtual internal void | BeforeAddCheck (PhysicsEngine engine) |
| Before the item is allowed to be added to pending this method is called to throw any exceptions without corrupting the state of the Physics engine. | |
| virtual void | OnPending (EventArgs e) |
| virtual void | OnAdded (EventArgs e) |
| virtual void | OnRemoved (RemovedEventArgs e) |
| virtual internal void | UpdateTime (TimeStep step) |
| virtual internal void | AddBodyRange (List< Body > collection) |
| virtual internal void | RemoveExpiredBodies () |
| virtual internal void | Clear () |
Staattiset suojatut jäsenfunktiot | |
| static Lifespan | GetLifeTime (Body body) |
Ominaisuudet | |
| virtual ReadOnlyCollection< Body > | LogicBodies [get] |
| bool | IsPending [get] |
| Gets if it has been added the the Engine's PendingQueue, but not yet added to the engine. | |
| bool | IsAdded [get] |
| Gets if the object has been added to the engine. | |
| PhysicsEngine | Engine [get] |
| Gets The PhysicsEngine the object is currently in. Null if it is in none. | |
| object | Tag [get, set] |
| Gets and Sets a User defined object. | |
| Lifespan | Lifetime [get, set] |
| Gets and Sets the LifeTime of the object. The object will be removed from the engine when it is Expired. | |
| List< Body > | Bodies [get] |
| int | Order [get, set] |
| Get and Sets The order number of when it will be ran. All Logics with a higher order will run after this one and all logics with a lower order number will be ran before this one. | |
Tapahtumat | |
| EventHandler | LifetimeChanged |
| Raised when the Lifetime property has been Changed. | |
| EventHandler | Added |
| Raised when the object is added to a Physics Engine. | |
| EventHandler | Pending |
| Raised when the object is Added to the engine but is not yet part of the update process. | |
| EventHandler< RemovedEventArgs > | Removed |
| Raised when the object is Removed from a Physics Engine. | |
A physics logic is a way for the engine to effect object within the Update call. Gravity is a Example of a PhysicsLogic.
| virtual internal void BeforeAddCheck | ( | PhysicsEngine | engine | ) | [inline, protected, virtual] |
Before the item is allowed to be added to pending this method is called to throw any exceptions without corrupting the state of the Physics engine.
| engine | The engine the item is about to be added too. |
Uudelleentoteutetaan luokissa GravityPointMass ja RaySegmentsCollisionLogic.
PhysicsEngine Engine [get] |
Gets The PhysicsEngine the object is currently in. Null if it is in none.
Toteuttaa luokan IPhysicsEntity.
bool IsAdded [get] |
Gets if the object has been added to the engine.
Toteuttaa luokan IPendable.
bool IsPending [get] |
Gets if it has been added the the Engine's PendingQueue, but not yet added to the engine.
Toteuttaa luokan IPendable.
Lifespan Lifetime [get, set] |
Gets and Sets the LifeTime of the object. The object will be removed from the engine when it is Expired.
Toteuttaa luokan IPendable.
int Order [get, set] |
Get and Sets The order number of when it will be ran. All Logics with a higher order will run after this one and all logics with a lower order number will be ran before this one.
object Tag [get, set] |
Gets and Sets a User defined object.
Toteuttaa luokan IPendable.
| EventHandler Added |
Raised when the object is added to a Physics Engine.
Toteuttaa luokan IPendable.
| EventHandler LifetimeChanged |
Raised when the Lifetime property has been Changed.
Toteuttaa luokan IPendable.
| EventHandler Pending |
Raised when the object is Added to the engine but is not yet part of the update process.
Toteuttaa luokan IPendable.
| EventHandler<RemovedEventArgs> Removed |
Raised when the object is Removed from a Physics Engine.
Toteuttaa luokan IPendable.
1.7.4