Class Bepu2DPhysicsOptions
- Namespace
- Stride.CommunityToolkit.Bepu
- Assembly
- Stride.CommunityToolkit.Bepu.dll
Option set for creating a Bepu-physics enabled 2D-style primitive entity.
public class Bepu2DPhysicsOptions : Primitive2DEntityOptions
- Inheritance
-
Bepu2DPhysicsOptions
- Inherited Members
Remarks
Extends Primitive2DEntityOptions with a Bepu CollidableComponent. The default is a dynamic Body2DComponent having an empty CompoundCollider. Although termed "2D", simulation occurs in 3D space with constraints limiting motion to the XY plane.
Properties
Component
Gets or sets the Bepu collidable component to attach. Defaults to a new Body2DComponent with an empty CompoundCollider.
public CollidableComponent Component { get; set; }
Property Value
IncludeCollider
When true (default), a collider shape matching the primitive type is auto-created and added. When false, the CollidableComponent is attached without shapes; you can add shapes later.
public bool IncludeCollider { get; set; }