Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    PhysicsProcessor Class

    Namespace: Stride.Physics
    Assembly: 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()
    | Improve this Doc View Source

    Constructors


    PhysicsProcessor()

    public PhysicsProcessor()
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Methods


    Draw(RenderContext)

    public override void Draw(RenderContext context)
    Parameters
    Type Name Description
    RenderContext context
    Overrides
    EntityProcessor.Draw(RenderContext)

    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()

    Inherited Members

    EntityProcessor<PhysicsComponent, PhysicsProcessor.AssociatedData>.ComponentDatas
    EntityProcessor<PhysicsComponent, PhysicsProcessor.AssociatedData>.OnSystemAdd()
    EntityProcessor<PhysicsComponent, PhysicsProcessor.AssociatedData>.OnSystemRemove()
    EntityProcessor<PhysicsComponent, PhysicsProcessor.AssociatedData>.RemoveAllEntities()
    EntityProcessor<PhysicsComponent, PhysicsProcessor.AssociatedData>.ProcessEntityComponent(Entity, EntityComponent, Boolean)
    EntityProcessor<PhysicsComponent, PhysicsProcessor.AssociatedData>.GenerateComponentData(Entity, PhysicsComponent)
    EntityProcessor<PhysicsComponent, PhysicsProcessor.AssociatedData>.IsAssociatedDataValid(Entity, PhysicsComponent, PhysicsProcessor.AssociatedData)
    EntityProcessor<PhysicsComponent, PhysicsProcessor.AssociatedData>.OnEntityComponentAdding(Entity, PhysicsComponent, PhysicsProcessor.AssociatedData)
    EntityProcessor<PhysicsComponent, PhysicsProcessor.AssociatedData>.OnEntityComponentRemoved(Entity, PhysicsComponent, PhysicsProcessor.AssociatedData)
    EntityProcessor.Tags
    EntityProcessor.UpdateProfilingState
    EntityProcessor.DrawProfilingState
    EntityProcessor.Enabled
    EntityProcessor.MainComponentType
    EntityProcessor.RequiredTypes
    EntityProcessor.HasRequiredComponents
    EntityProcessor.Order
    EntityProcessor.EntityManager
    EntityProcessor.Services
    EntityProcessor.Update(GameTime)
    EntityProcessor.RemoveAllEntities()
    EntityProcessor.ProcessEntityComponent(Entity, EntityComponent, Boolean)
    EntityProcessor.InternalAddEntity(Entity)
    EntityProcessor.InternalRemoveEntity(Entity, Boolean)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation