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
entityEntityThe entity.
componentPhysicsConstraintComponentdataPhysicsConstraintComponentThe 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
entityEntityThe entity.
componentPhysicsConstraintComponentdataPhysicsConstraintComponentThe associated data.
Recreate(PhysicsConstraintComponent, bool)
Recreate the constraint according to the description in the component.
public void Recreate(PhysicsConstraintComponent component, bool skipUninitializedComponents = false)
Parameters
componentPhysicsConstraintComponentConstraint component.
skipUninitializedComponentsboolIf
trueand 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
timeGameTime