Class PhysicsProcessor
- Inheritance
-
Physics
Processor
- Inherited Members
Constructors
PhysicsProcessor()
Properties
ParentScene
Gets or sets the associated parent scene to render the physics debug shapes. Assigned with default one on On
Property Value
- Scene
The parent scene.
Simulation
Property Value
Methods
Draw(RenderContext)
Performs work related to this processor.
Parameters
context
RenderContext
GenerateComponentData(Entity, PhysicsComponent)
Generates associated data to the given entity.
protected override PhysicsProcessor.AssociatedData GenerateComponentData(Entity entity, PhysicsComponent component)
Parameters
entity
EntityThe entity.
component
PhysicsComponent
Returns
- Physics
Processor .AssociatedData The associated data.
IsAssociatedDataValid(Entity, PhysicsComponent, AssociatedData)
Checks if the current associated data is valid, or if readding the entity is required.
protected override bool IsAssociatedDataValid(Entity entity, PhysicsComponent physicsComponent, PhysicsProcessor.AssociatedData associatedData)
Parameters
entity
EntityThe entity.
physicsComponent
PhysicsComponent associatedData
PhysicsProcessor .AssociatedData The associated data.
Returns
- bool
True if the change in associated data requires the entity to be readded, false otherwise.
OnEntityComponentAdding(Entity, PhysicsComponent, AssociatedData)
Run when a matching entity is added to this entity processor.
protected override void OnEntityComponentAdding(Entity entity, PhysicsComponent component, PhysicsProcessor.AssociatedData data)
Parameters
entity
EntityThe entity.
component
PhysicsComponent data
PhysicsProcessor .AssociatedData The associated data.
OnEntityComponentRemoved(Entity, PhysicsComponent, AssociatedData)
Run when a matching entity is removed from this entity processor.
protected override void OnEntityComponentRemoved(Entity entity, PhysicsComponent component, PhysicsProcessor.AssociatedData data)
Parameters
entity
EntityThe entity.
component
PhysicsComponent data
PhysicsProcessor .AssociatedData The associated data.
OnSystemAdd()
Run when this Entity
OnSystemRemove()
Run when this Entity