collision detection script?


(MrPatel) #1

Does anyone have a script that applies collision detection to objects in the scene, so that if im animating a character whose walking, he doesnt go through the ground, or if hes climbing a ladder his hands and feet dont go through the rungs.


(Hos) #2

No.

Chris


(RipSting) #3

You’ll have to make your own script that says…

if feet.y < ground.y:
…feet.y = ground.y

Or else Theeth made a collision script for Dynamica…


(theeth) #4

Or else Theeth made a collision script for Dynamica…

I didn’t do it, Eeshlo did. Plus, it’s not a full collision handling script (yet). Only the “detection” part is done.

MrPatel: it’s potentially possible, but it would mean extracting the deformed mesh each frame, than checking for collision, than deforming based on soft body maths.

Martin