Collision between scene nodes
Posted: Sat Jan 08, 2011 7:40 am
I am now learning tutorial 07 and I notice that the camera cannot move through walls because of the collision response animator.
I am wondering if I can use this animator to handle the collision between scene nodes other than camera. That is, if there are 2 scene nodes on the screen, how to move one node but disallow it to move through the other node?
Could someone please give me an example code?
Thanks a lot!
I am wondering if I can use this animator to handle the collision between scene nodes other than camera. That is, if there are 2 scene nodes on the screen, how to move one node but disallow it to move through the other node?
Could someone please give me an example code?
Thanks a lot!