Table of Contents

Class Bepu2DPhysicsOptions

Namespace
Stride.CommunityToolkit.Bepu
Assembly
Stride.CommunityToolkit.Bepu.dll

Provides options for creating a 2D-style primitive entity with Bepu physics.

public class Bepu2DPhysicsOptions : Primitive2DEntityOptions
Inheritance
Bepu2DPhysicsOptions
Inherited Members

Remarks

Extends Primitive2DEntityOptions with a configurable Bepu CollidableComponent.

When Component is left null, the creation helper that consumes the options picks a context-appropriate default: a dynamic Body2DComponent for primitives, a StaticComponent for the ground helper.

Although this option type is for 2D-style primitives, Bepu simulation still runs in 3D space with motion constrained to the XY plane.

Properties

Component

Gets or sets the Bepu collidable component attached to the entity.

public CollidableComponent? Component { get; set; }

Property Value

CollidableComponent

Remarks

When null (the default), the consuming helper chooses: primitive creation attaches a dynamic Body2DComponent with an empty CompoundCollider, while the ground helper attaches a StaticComponent. Set it explicitly to override either default.

IncludeCollider

Gets or sets a value indicating whether a collider shape matching the primitive type is created automatically.

public bool IncludeCollider { get; set; }

Property Value

bool

Remarks

Defaults to true. When set to false, the Component is attached without generated collider shapes so they can be added later.