Jump to content

Physics Forward Model: is it possible?


gdgp
 Share

Recommended Posts

Hi,

 

I am planning to create a game with a couple of rectangles and circles, but where I want to have an AI controlling a character. To do so I need the AI to be able to forward model (e.g. 5 seconds ahead) the (P2) physics of the game world in order to look ahead. However, from what I have seen the physics, even though decoupled from rendering which enables much faster processing for physics alone, does not seem to have any straigforward mechanisms to accomplish this.

 

Possible solutions that have crossed my mind, but I wonder if they are possible: 1) copy the state of the physics world to a new game and perfom the lookahead with this; 2) save the physical properties of the objects, look ahead and when finished reset those properties.

 

Anyone knows if this is possible or of any other/better solution to perform this look ahead functionality?

 

Thanks a lot!

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