Jump to content

Issues with collision


mangualmanuel
 Share

Recommended Posts

I created a scene in babylon and I seem to be having issues with the colliders I set up in blender. In my scene I have a table and a chair and I have a box which I checked the check for collision option. In addition I also added a rigid body to said box acting as the bounding box object.
 

The next thing I did was use the babylon sandbox to test out my scene and when the camera collides with the bounding box it "jitters" or shakes violently. I wanted to know if there was anything else I needed to to in order to get smooth collision between the camera and the bounding box? Many thanks in advance!

Link to comment
Share on other sites

It reminds me something on another game engine : BabylonJS is intended to work in meter per world unit. If you're too low or too high on that scale ( in foot, millimeters, nanometer, and so on), you might encounter collision small issues due to the relative lack of accuracy of the real time process. Don't know if that will fix your stuff, but it may help.

Otherwise, you are may be "stucked" in a collision paradox : If you're in a ramp, doing nothing, the camera will slowly goes down the ramp, following the gravity. Imagine now that you're in a multi ramp (let's say the inner faces of a upside down pyramid), you might go down one face, then, with inertia, go up the opposite face, then go don again.

Link to comment
Share on other sites

Thanks to everyone who posted. I figured out what the issue was with my collision. Basically what I needed to do in blender 3D was to remove the rigid body from my models and make sure I leave the check collision option. These are static models so they will not bounce or ricochet when the user collides with them. They are there to stop the user from going through them.  

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...