Collision or not

nikhil

16-10-2006 04:20:29

hi.

Is there a way to know whether a body is in contact with another body..?? I've a ball and i want it to jump.. but it has to be on the ground , i.e in touch with the ground for the jump to happen..

Initially I thought I would check for the velocity in Y direction, but then we can've movements up/down the slope??

Thanks

nikhil

Nudel

16-10-2006 10:39:20

You have to use Material Callbacks for that, as far as i know.

nikhil

16-10-2006 11:14:11

You have to use Material Callbacks for that, as far as i know.

Is there any tutorial on how to do it????

regards

nikhil

nikhil

17-10-2006 23:21:09

You have to use Material Callbacks for that, as far as i know.

hey thnks for the tip man.. i followed the tutorial 3 on ogreNewt.. and im able to trigger stuff based on collision now..

im sure i'll be running into new problems soon anyway... ;)

thanks
nik