Table of Contents

Class Bullet2DPhysicsOptions

Namespace
Stride.CommunityToolkit.Bullet
Assembly
Stride.CommunityToolkit.Bullet.dll

Option set for creating a Bullet-physics enabled 2D-style primitive entity.

public class Bullet2DPhysicsOptions : Primitive2DEntityOptions
Inheritance
Bullet2DPhysicsOptions
Inherited Members

Remarks

Extends Primitive2DEntityOptions with a configurable Bullet PhysicsComponent (default RigidbodyComponent). Even for 2D gameplay the underlying Bullet simulation is 3D; axis locking or constraints at a higher level typically enforce planar motion.

Properties

PhysicsComponent

Gets or sets the Bullet physics component to attach. Defaults to a new RigidbodyComponent.

public PhysicsComponent? PhysicsComponent { get; set; }

Property Value

PhysicsComponent

Remarks

Swap with a configured rigid body (e.g. static, kinematic) or a custom subclass prior to entity creation to tailor collision / motion behavior.