-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: Create Bepu demo sample templates. #2704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Couple more things to fix:
|
|
This is pretty much done but the Car scene still has the crash issue. It was happening before the changes here though so it is not an issue created in this project. (Unless there was something done incorrectly in the Car scene specifially of course) |
|
Doesn't look like this is part of the samples that the project window can create, I might be missing something though ... ? |
|
Sorry, you were not missing anything. I forgot to add the reference to the template file for the launcher. Although I noticed with the template its improperly creating a separate Windows project so Im just looking into that now. |
|
Ok so it turns out you must add the references to the non main scenes as root assets in the sdpkg for the template to work properly. One final issue is the resource files not being added for some reason. Almost there though. |
|
ok, now this should be mostly working again apart form the car demo due to the previous issue. Sorry again Eideren, I should have made sure to properly test the template in the launcher not just the project. |
|
All good, getting a now when building the spawned project, same with the dungeon and hex models |
|
They are not part of the spawned project file - one thing to note is that the changes listed here on github specify that those files are not moved, but entirely removed from the repo. |
|
good catch, for some reason the gitignores had .obj files? Not usre if there is some greater risk with removing those lines but it only added the ones I wanted in this case. |
|
The samples are a bit too rough right now I think. The car scene, for example, captures the mouse on start, if the user presses tab the mouse is unlocked but the scene selection menu disappears at the same time so we can't easily go back to another scene. I think we should remove the weird platform from the car scene as well given how much of a performance issue it is at the start but even afterward. Doesn't make for a good best practice example. And we'll also have to wait for #2722 to be merged before merging this one. |
|
Sounds good, I will clean it up with a proper state machine and maybe just merge the FPS and Car scene into one in that case, it may be more interesting for users anyway. And thank you for figuring out that crash! |
|
I cleaned up the demo and removed the character and car examples as I have a plan to make a separate Bepu template dedicated to being more of a simple game example. I will make a new PR for a template that will have an first person controller that can enter and exit a car and depepdning on my time I will try to add the same shooter functionality from the FPS demo that exists with bullet. |
|
Oh I also added a couple more constraint examples (ball socket and distance). |
|
Thanks ! |



PR Details
This PR re-configures the old demos into a project template for users to look at how some of the features are meant to work in a playable environment.
I have also updated Bepu to the latest version which seems to fix the convex creation issue.
Related Issue
There have been a few mentions in discord about the lack of docs/examples for the Bepu library.
#2703
Types of changes
Checklist