PhysicsProcessor Class
Namespace: Stride.PhysicsAssembly: Stride.Physics.dll
System.Object → EntityProcessor → EntityProcessor<PhysicsComponent, PhysicsProcessor.AssociatedData> →
PhysicsProcessor
Derived from PhysicsProcessor:
public class PhysicsProcessor : EntityProcessor<PhysicsComponent, PhysicsProcessor.AssociatedData>
Name | Description | |
---|---|---|
Constructors | ||
PhysicsProcessor() | ||
Properties | ||
ParentScene | Gets or sets the associated parent scene to render the physics debug shapes. Assigned with default one on OnSystemAdd() |
|
Simulation | ||
Methods | ||
Draw(RenderContext) | ||
GenerateComponentData(Entity, PhysicsComponent) | ||
IsAssociatedDataValid(Entity, PhysicsComponent, PhysicsProcessor.AssociatedData) | ||
OnEntityComponentAdding(Entity, PhysicsComponent, PhysicsProcessor.AssociatedData) | ||
OnEntityComponentRemoved(Entity, PhysicsComponent, PhysicsProcessor.AssociatedData) | ||
OnSystemAdd() | ||
OnSystemRemove() | ||
UpdateContacts() | ||
UpdateRemovals() |
Constructors
PhysicsProcessor()
public PhysicsProcessor()
Properties
ParentScene
Gets or sets the associated parent scene to render the physics debug shapes. Assigned with default one on OnSystemAdd()
public Scene ParentScene { get; set; }
Property Value
Type | Description |
---|---|
Scene | The parent scene. |
Simulation
public Simulation Simulation { get; }
Property Value
Type | Description |
---|---|
Simulation |
Methods
Draw(RenderContext)
public override void Draw(RenderContext context)
Parameters
Type | Name | Description |
---|---|---|
RenderContext | context |
Overrides
GenerateComponentData(Entity, PhysicsComponent)
protected override PhysicsProcessor.AssociatedData GenerateComponentData(Entity entity, PhysicsComponent component)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | |
PhysicsComponent | component |
Returns
Type | Description |
---|---|
PhysicsProcessor.AssociatedData |
Overrides
Stride.Engine.EntityProcessor<Stride.Engine.PhysicsComponent, Stride.Physics.PhysicsProcessor.AssociatedData>.GenerateComponentData(Stride.Engine.Entity, Stride.Engine.PhysicsComponent)
IsAssociatedDataValid(Entity, PhysicsComponent, PhysicsProcessor.AssociatedData)
protected override bool IsAssociatedDataValid(Entity entity, PhysicsComponent physicsComponent, PhysicsProcessor.AssociatedData associatedData)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | |
PhysicsComponent | physicsComponent | |
PhysicsProcessor.AssociatedData | associatedData |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Stride.Engine.EntityProcessor<Stride.Engine.PhysicsComponent, Stride.Physics.PhysicsProcessor.AssociatedData>.IsAssociatedDataValid(Stride.Engine.Entity, Stride.Engine.PhysicsComponent, Stride.Physics.PhysicsProcessor.AssociatedData)
OnEntityComponentAdding(Entity, PhysicsComponent, PhysicsProcessor.AssociatedData)
protected override void OnEntityComponentAdding(Entity entity, PhysicsComponent component, PhysicsProcessor.AssociatedData data)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | |
PhysicsComponent | component | |
PhysicsProcessor.AssociatedData | data |
Overrides
Stride.Engine.EntityProcessor<Stride.Engine.PhysicsComponent, Stride.Physics.PhysicsProcessor.AssociatedData>.OnEntityComponentAdding(Stride.Engine.Entity, Stride.Engine.PhysicsComponent, Stride.Physics.PhysicsProcessor.AssociatedData)
OnEntityComponentRemoved(Entity, PhysicsComponent, PhysicsProcessor.AssociatedData)
protected override void OnEntityComponentRemoved(Entity entity, PhysicsComponent component, PhysicsProcessor.AssociatedData data)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | |
PhysicsComponent | component | |
PhysicsProcessor.AssociatedData | data |
Overrides
Stride.Engine.EntityProcessor<Stride.Engine.PhysicsComponent, Stride.Physics.PhysicsProcessor.AssociatedData>.OnEntityComponentRemoved(Stride.Engine.Entity, Stride.Engine.PhysicsComponent, Stride.Physics.PhysicsProcessor.AssociatedData)
OnSystemAdd()
protected override void OnSystemAdd()
Overrides
Stride.Engine.EntityProcessor<Stride.Engine.PhysicsComponent, Stride.Physics.PhysicsProcessor.AssociatedData>.OnSystemAdd()
OnSystemRemove()
protected override void OnSystemRemove()
Overrides
Stride.Engine.EntityProcessor<Stride.Engine.PhysicsComponent, Stride.Physics.PhysicsProcessor.AssociatedData>.OnSystemRemove()
UpdateContacts()
public void UpdateContacts()
UpdateRemovals()
public void UpdateRemovals()