Planet collision function:

Because the gravity sim example was built upon the cannonDemo.js file, there is no example of how to control the relative three.js objects I’ve created for my planets physics objects because all of this was handled through the cannonDemo file. This has left me to figure out how to handle the relative three.js object with their partnering phys objects. On collision I need to remove the smallest planets phys object and visual object in addition to increasincreasing the largest planets radius and mass of the phys object and the radius of the three.js mesh.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s