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
Entitytype
Primitive2DModelTypeoptions
Bepu2DPhysicsOptions
Returns
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
Entitytype
PrimitiveModelTypeoptions
Bepu3DPhysicsOptions