Class PhysicsConstraintProcessor
public class PhysicsConstraintProcessor : EntityProcessor<PhysicsConstraintComponent>
- Inheritance
-
PhysicsConstraintProcessor
- Inherited Members
Constructors
PhysicsConstraintProcessor()
public PhysicsConstraintProcessor()
Methods
OnEntityComponentAdding(Entity, PhysicsConstraintComponent, PhysicsConstraintComponent)
Run when a matching entity is added to this entity processor.
protected override void OnEntityComponentAdding(Entity entity, PhysicsConstraintComponent component, PhysicsConstraintComponent data)
Parameters
entity
EntityThe entity.
component
PhysicsConstraintComponentdata
PhysicsConstraintComponentThe associated data.
OnEntityComponentRemoved(Entity, PhysicsConstraintComponent, PhysicsConstraintComponent)
Run when a matching entity is removed from this entity processor.
protected override void OnEntityComponentRemoved(Entity entity, PhysicsConstraintComponent component, PhysicsConstraintComponent data)
Parameters
entity
EntityThe entity.
component
PhysicsConstraintComponentdata
PhysicsConstraintComponentThe associated data.
Recreate(PhysicsConstraintComponent, bool)
Recreate the constraint according to the description in the component
.
public void Recreate(PhysicsConstraintComponent component, bool skipUninitializedComponents = false)
Parameters
component
PhysicsConstraintComponentConstraint component.
skipUninitializedComponents
boolIf
true
and rigidbody internals have not been initialized no exception will be thrown.
Update(GameTime)
Performs work related to this processor.
public override void Update(GameTime time)
Parameters
time
GameTime