Table of Contents

Class EntityExtensions

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

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

public static class EntityExtensions
Inheritance
EntityExtensions

Methods

AddBepu2DPhysics(Entity, Primitive2DModelType, Bepu2DPhysicsOptions?)

Adds Bepu 2D physics components to the entity.

public static Entity AddBepu2DPhysics(this Entity entity, Primitive2DModelType type, Bepu2DPhysicsOptions? options = null)

Parameters

entity Entity
type Primitive2DModelType
options Bepu2DPhysicsOptions

Returns

Entity

AddBepuPhysics(Entity, PrimitiveModelType, Bepu3DPhysicsOptions?)

Adds Bepu 3D physics components to the entity.

public static Entity AddBepuPhysics(this Entity entity, PrimitiveModelType type, Bepu3DPhysicsOptions? options = null)

Parameters

entity Entity
type PrimitiveModelType
options Bepu3DPhysicsOptions

Returns

Entity