Table of Contents

Class EntityExtensions

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

Provides extension methods for the Entity class to simplify adding Bullet 2D and 3D physics components.

public static class EntityExtensions
Inheritance
EntityExtensions

Methods

AddBullet2DPhysics(Entity, Primitive2DModelType, Bullet2DPhysicsOptions?)

Adds Bullet 2D physics components to the entity.

public static Entity AddBullet2DPhysics(this Entity entity, Primitive2DModelType type, Bullet2DPhysicsOptions? options = null)

Parameters

entity Entity
type Primitive2DModelType
options Bullet2DPhysicsOptions

Returns

Entity

AddBullet3DPhysics(Entity, PrimitiveModelType, Bullet3DPhysicsOptions?)

Adds Bullet 3D physics components to the entity.

public static Entity AddBullet3DPhysics(this Entity entity, PrimitiveModelType type, Bullet3DPhysicsOptions? options = null)

Parameters

entity Entity
type PrimitiveModelType
options Bullet3DPhysicsOptions

Returns

Entity