Table of Contents

Class PhysicsConstraintProcessor

Namespace
Stride.Physics.Engine
Assembly
Stride.Physics.dll
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 Entity

The entity.

component PhysicsConstraintComponent
data PhysicsConstraintComponent

The 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 Entity

The entity.

component PhysicsConstraintComponent
data PhysicsConstraintComponent

The 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 PhysicsConstraintComponent

Constraint component.

skipUninitializedComponents bool

If 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