Avatar mass changes:

The next task is to create a new mass for the avatar, either larger or smaller on collision. Within three.js this is fairly simple I can simply scale the avatar shape up by a certain amount derived from the objects mass and mass of the avatar: “scaleAmount = e.with.mass /(avatar.scale * 20);”

However there is no partner function to scale Cannon.js objects. So I need to find a work around in order to have a matching collider object for my avatars visual mesh.

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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