Avatar collision:

While the planet collision function didn’t work properly, I still learnt a lot about the processes involved in creating a collision function. So my next task is to create the avatar collision function.

Straight away I now know how to create the function:

function colliderFunctions() {

avatarBody.addEventListener(“collide”, function(e) {

});

}

The next step is to asses the other object on collision to tell whether the object is smaller or larger.

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