Jump to content

movement and collision listeners?


ramsestom
 Share

Recommended Posts

Hi,

Indeed there is a collision system in BabylonJS, here is the tutorial : http://doc.babylonjs.com/tutorials/Intersect_Collisions_-_mesh

You even have a predefined playground you can play with ! http://playground.babylonjs.com/?10

Do not hesitate to go back here if you have any questions about collisions. have fun :)

Link to comment
Share on other sites

@ramsestom - I like the answer that @Pouet provided, however if you are asking if there is a way to detect movement within a space devoid of collision objects, then this is a great question and I would like to know this as well. As collisions are an obvious solution, I thought I might clarify what you are asking - otherwise, this is a question in which I would love to know the answer.

There are functions to compare changes between frames on a 2D level such as http://www.sw-engineering-candies.com/blog-1/extremely-fast-and-simple-webgl-motion-detector-to-rotate-3d-graphic 

But perhaps there is a way to use a camera and it's FOV matrix to dectect movement in a single frame? Now this would be interesting and valuable if it exists.

DB

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...