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
Entitytype
Primitive2DModelTypeoptions
Bullet2DPhysicsOptions
Returns
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
Entitytype
PrimitiveModelTypeoptions
Bullet3DPhysicsOptions