x


Best way to physics collision

What would be the best approach, to create collision triggered collapse, of physics objects.

In other term, what I'd like to do, is : When the player does the hit animation, and hits a stack of boxes, these boxes react to the angle from whichthey were hit, and fall down.

So far I've been able to get boxes that fell according to the gravity value in the scene, but whenever the player interacts with them they are solid, and cannot be moved.

Will this require heavy JS scripting ? And if so, could anyone point me towards an efficient way to understand how to get it done ? I have basics in scripting with gamemake, actionscript and other object oriented languages. Any help will beappreciated.

Thanks !

  • Igor
more ▼

asked Oct 06 '10 at 06:53 PM

Igor 1 gravatar image

Igor 1
1 1 1 1

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

You need to use AddForce on the boxes when they collide with the character controller

more ▼

answered Oct 06 '10 at 06:57 PM

spinaljack gravatar image

spinaljack
9.1k 18 31 91

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2482
x1864
x801
x44

asked: Oct 06 '10 at 06:53 PM

Seen: 1146 times

Last Updated: Oct 06 '10 at 06:53 PM