Jump to content

Action Manager and low FPS


amorgan
 Share

Recommended Posts

I am moving a projectile through space and have registered an OnIntersectionEnterTrigger action to the object and my target. The problem I am facing is that at lower fps, the intersect is sometimes missed due to the object not occupying the same space in a frame because of "skipping". Is there an easy way to interpolate if the object would have intersected via Babylon JS? Or is there a better way to do this?

 

Thank you.

Link to comment
Share on other sites

Thanks for the suggestion.

 

I will keep this in mind if I end up doing an interpolation between the last known point and the current point (which should be relatively straight if the time step is small enough, even for a non-linear path).

 

I was hoping there was a Babylon JS feature that could solve this within the Action Manager :D I wanted to double check before I starting exploring other avenues.

Link to comment
Share on other sites

Not a stupid question.

 

To be honest, I have not messed with the physics plugins yet. Maybe that is what I am missing. I have just been manipulating my meshes with my own "physics" function.

 

I see there is the Oimi.js and Cannon.js plug-in (or I could use my own). Where is the best place to start for learning how this works? Are the two blogs on the doc site where I should start?

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