BepuConfiguration.NewInstance - inconsistent behaviour
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.8k
- Forks
- 1.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 49
Description
Release Type: Release
Version: 4.3.0.2507
Platform(s): All
Describe the bug
If BepuConfiguration isn't added to game settings, it will be created at runtime. However, this behavior can differ:
- If the game settings asset exists -> configuration has no simulations, so nothing works
- If the game settings asset does not exist (code-only) -> configuration has a single simulation with default values
Having the latter always be the case would reduce a lot of confusion for users that didn't read the manual.
To Reproduce
- Create a new project
- Add some physics objects
- Observe that physics don't work and there's a warning that there are no simulations
- Delete the game settings asset
- Set the graphics compositor and scene manually
- Physics works
Expected behavior
A single simulation is added no matter if the game settings asset exists or not
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at BepuConfiguration.NewInstance and reproduce the behavior with and without the game settings asset using the listed steps. Trace how the configuration is initialized in each case; done means both paths create one simulation with default values and physics works consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100