Namespace Stride.CommunityToolkit.Bepu
Classes
- BepuEntityInstancing
An EntityInstancing for Bepu physics bodies that stops working entirely once the bodies fall asleep.
- BepuPhysicsOptions
The options of a primitive entity with Bepu physics, 2D or 3D: the entity options plus the body's mode, component, mass and interpolation.
- BepuPhysicsSetup
Bepu as the physics engine of a scene setup:
UseBepu()sets it, and from then onCreatePrimitiveand the ground helpers attach a Bepu body or collider through AddBepuPhysics(Entity, Primitive3D, BepuPhysicsOptions?).
- Body2DComponent
A dynamic body confined to the XY plane.
- BodyComponentExtensions
Extension methods for BodyComponent.
- CameraComponentExtensions
Provides extension methods for CameraComponent to facilitate raycasting functionality.
- CollidableGizmoScript
Toggles visualization gizmos for all CollidableComponent instances in the current scene when a specified key is pressed.
- ConeCollider
Builds the convex hull collider of a cone, decomposed from the same mesh the model is built from, and shares it between every cone of the same dimensions.
- ConvexHullColliderExtensions
Helpers to build Bepu ConvexHullCollider instances from Stride procedural meshes.
- DebugRenderComponentScript
Script that ensures a DebugRenderComponent is added to the owning Entity once the scene is ready (when visibility groups are present).
- EntityExtensions
Extension methods on Entity that add Bepu 2D and 3D physics with the collider that matches a primitive shape, plus the collider derivation itself, ColliderFor(Primitive3D) and ColliderFor(Primitive2D, float), for callers who build their own body.
- GameExtensions
Extension methods on Game for a scene with Bepu physics. The scene itself is set up through UseBepu<T>(T) on a SceneSetup; the core's
CreatePrimitive,Add3DGroundandAdd2DGroundthen attach Bepu bodies and colliders.
- GrabberScript
Pick up any dynamic body with the mouse, carry it on the end of the camera ray, and let go - with whatever velocity it had, so a flick throws it. Put it on the camera entity.
- PolygonCollider
Builds the convex hull collider of a flat polygon extruded along Z: the prism a 2D polygon shape collides as.
- SceneSetupExtensions
Chooses Bepu as the physics engine of a scene setup.
- SharedHullCache
Keeps one DecomposedHulls per distinct shape and size, so many bodies of the same shape share a single Bepu hull.
- SimulationExtensions
Provides extension methods for BepuSimulation that cast a RaySegment, so a segment produced by
CameraComponentExtensions.ScreenToWorldRaySegmentcan be handed to Bepu directly, with no separate direction or maximum distance to work out.
- TeapotCollider
Builds the convex hull collider of the Utah teapot, decomposed from a coarse version of the model's mesh, and shares it between every teapot of the same size.
- TextCollider
Builds the collider of solid lettering: one convex hull per glyph, placed where the glyph sits in the text, inside a single ConvexHullCollider.
- TorusCollider
Builds the convex hull collider of a torus, decomposed from the same mesh the model is built from, and shares it between every torus of the same dimensions.
- TriangularPrismCollider
Builds the convex hull collider of a triangular prism, decomposed from the same mesh the model is built from, and shares it between every prism of the same size.