-
-
Notifications
You must be signed in to change notification settings - Fork 307
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
[kinematic-body] scene shakes / bounces #225
Comments
Thanks for the bug report — the issue appears with the newest version of physics (v3.1.1) too it looks like. Was there a previous version of any of these where you weren't seeing the issue before? |
I just tried the following in the same glitch project. a. changed the aframe ver to 0.7.1 and the shaking stops And this is my first use of physics so am not familiar with any earlier versions |
For what it's worth, here is another demo of the "bouncing": https://codepen.io/dansinni/pen/MGYwWK |
This has also been a big issue for me as well, along with much worse shakiness when the player is bigger or smaller then a size around 3, flinging backwards around size 2 and floating when you look above the middle of the screen at size 0.3, though that seems to have to do more with the super-hands component. There's a 3 month competition I've been doing so the example I have is a bit more complex but here it is if you wish to see it: https://freddykruggor.gitlab.io/Project_X . Still not quite finished. Two more notes, if you put a box on another box it will have the same shakiness the player does until the box on top falls off the one beneath it, as well the player doesn't shake as much when moving. |
@flamingfox101 I should also mention for reference that I strongly recommend using a navigation mesh rather than
|
I'll try that out. Thanks for the advice and keep up the good work :) |
Also — here's a (very) experimental thing I'm working on that's worth a try. I'm writing a plugin for the A-Frame inspector that builds a navmesh for the current scene. Steps:
<script src="https://recast-api.donmccurdy.com/aframe-inspector-plugin-recast.js"></script>
<a-scene inspector-plugin-recast> ...
|
Thanks @donmccurdy . I just tried on a simple scene: floor + 4 walls + one box at the centre. Opened Inspector. Clicked on the scene. Clicked on Build. After a few seconds gave an error. Console showed. The glitch is: https://glitch.com/edit/#!/magnificent-columnist |
Hmm. Can you please share the glitch of the above. I am still getting a no navigation-mesh error after build when I click on Export. I added an And appreciate the plug-in even if it has a few rough edges for now. |
Now I think your grid is just too small, and the barriers too low, for the default navmesh parameters. Otherwise it's fine, you don't have to include a Here's one I've adjusted a bit: https://cherry-teacher.glitch.me/ note how it goes over the lower barriers, because of the |
ok. Thanks. will check it |
@donmccurdy : This works well. Thanks. Why does the plug-in require a larger |
Not sure. 😁 Guessing that if your |
If you'd like to report bugs, the repo is here: https://github.com/donmccurdy/aframe-inspector-plugin-recast |
ok. will study that library and report a bug if necessary. Thanks |
Amazing stuff, @donmccurdy! |
Hi, @donmccurdy. Just wanted to check in to see if any progress has been made on this front. I know there's a big push for using As @RRRepos stated, it worked well enough with A-Frame Aside from At this point, do you think it likely to achieve the working state of Thanks, man. |
@dsinni do you have an example demonstrating lots of movement with stacked boxes? I have one (stress.html) that shows minimal movement; but some movement is unavoidable. With |
I'll put some together and post here. Thanks for the reply, Don. |
That stress test link appears to be using A-frame |
Ah good point, I should definitely update all those test cases anyway... at first look the boxes still seem stable with A-Frame 0.8.2, but yeah more examples would be appreciated. 👍 |
Okay, so it's been a little while since I first experienced the issue with the "crates" (stacked There appears to be less of a variation between using This is based on old code, but updated to show each version:
I actually timed the collapse of the crates (haha), and it took approximately 25 seconds for the crates to fall in So, it seems the issue is mostly with That said, I think I may have discovered an unrelated bug with Thank you, sir. |
The |
I'll take it! Thanks, Don! |
The following has been observed.
Periodically (every few seconds) the whole scene seems to jump (bounce/shake) up and down with the following versions.
aframe v0.8.2
aframe-extras v4.0.2
aframe-physics-system v2.0.1
A glitch project has been created to demonstrate the same:
https://short-canoe.glitch.me/
The text was updated successfully, but these errors were encountered: