Skip to content

Plugins 4/12: Bepu hull assets in Stride.BepuPhysics.Assets - #3539

Merged
xen2 merged 3 commits into
feature/plugins/3-asset-extensionsfrom
feature/plugins/4-bepu
Oct 15, 2026
Merged

xen2 merged 3 commits into
feature/plugins/3-asset-extensionsfrom
feature/plugins/4-bepu

Conversation

@xen2

@xen2 xen2 commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Stack: 4/12, on top of feature/plugins/3-asset-extensions (#3538). Merge in order. Review only the commits after it.

The first built-in feature moved to the plugin shape: the Bepu hull asset, its compiler and its template go to Stride.BepuPhysics.Assets, declared by Stride.BepuPhysics.

The V-HACD wrapper, used by both Bepu and Bullet hulls, moves to its own Stride.Assets.VHACD package.

Package Contents
Runtime Stride.BepuPhysics Unchanged code; declares its Assets companion
Assets Stride.BepuPhysics.Assets Hull asset, compiler, template
Shared Stride.Assets.VHACD V-HACD wrapper and native libraries (a normal dependency, not a companion)

Bepu has no Game Studio parts yet, so no Editor package.

Most of the diff is moved files. The changes besides the move:

Changes

  • V-HACD wrapper: now public, in its own package, and it loads its native library itself.
  • No Bullet dependency: the hull's fill mode gets its own enum (same values), so Bepu's Assets package does not need Stride.Physics.
  • No Stride.Assets dependency: the hull compiler finds texture asset types through the registry instead of naming them.

Naming (later)

The package and namespace names stay as they are in this PR. The physics plugins may be renamed in a separate step later, so that Bepu and Bullet have names that match, Bullet's with "Bullet" in it (#3541).

Impact on games and plugins

  • Games using Bepu already reference Stride.BepuPhysics: nothing to do.
  • On upgrade to 4.5, a project with .sdhull files gets a Stride.BepuPhysics reference if it has none (PR 3).
  • Hull files keep their format; the existing hull upgrader moves with the asset.

Testing

  • New packaging test: a game compiles a current and an old hull through Stride.BepuPhysics.Assets, with a typed URL constant.
  • To try: in a project using Bepu, add a Convex hull from its template, pick a model and build.

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

🤖 Draft PR — automatic CI is skipped to save runner minutes.

  • Mark the PR ready for review to run the full automatic CI — or add a ci-run-on-draft label to run it now without leaving draft.
  • Or arm a specific opt-in suite: ci-enduser, ci-editor, ci-ios, ci-android.

@xen2
xen2 added this pull request to stack #3537 October 8, 2026 04:58
@xen2
xen2 marked this pull request as ready for review October 10, 2026 07:50
@xen2
xen2 force-pushed the feature/plugins/4-bepu branch from 5d3b37c to b6d06a1 Compare October 10, 2026 09:08
@xen2
xen2 force-pushed the feature/plugins/4-bepu branch from b6d06a1 to 408bc78 Compare October 12, 2026 23:48
@xen2
xen2 force-pushed the feature/plugins/4-bepu branch 2 times, most recently from 96110f4 to b2c51b3 Compare October 13, 2026 09:22
@xen2
xen2 force-pushed the feature/plugins/4-bepu branch from b2c51b3 to 26808d7 Compare October 13, 2026 10:43
@xen2
xen2 force-pushed the feature/plugins/4-bepu branch from 26808d7 to 8ec58e7 Compare October 14, 2026 09:20
xen2 added 3 commits October 15, 2026 00:57
ConvexHullMesh is public, shared by the asset packages that decompose hulls, with its own fill mode enum (ConvexDecompositionFillMode); it loads its native library in its static constructor.
…sics.Assets, declared as the runtime package's Assets companion

The hull's fill mode is the package's own enum, so it does not depend on Stride.Physics; the compiler excludes every texture asset type from its inputs; Stride.BepuPhysics contains asset types (StrideContainsAssetTypes); Stride.Assets, Stride.AssetCompiler and Stride.Editor.Wpf no longer reference Bepu.
@xen2
xen2 force-pushed the feature/plugins/4-bepu branch from 8ec58e7 to ed471ea Compare October 14, 2026 16:17
@xen2
xen2 merged commit f718431 into master Oct 15, 2026
75 of 82 checks passed
@xen2
xen2 deleted the feature/plugins/4-bepu branch October 15, 2026 01:32
@xen2 xen2 added the area-Plugins Plugin system: companion packages, editor and engine extension points, plugin authoring label Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Asset area-Physics area-Plugins Plugin system: companion packages, editor and engine extension points, plugin authoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant