Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
DarkJames's avatar
DarkJames
Honored Guest
12 years ago

Hydra+Mecanim IK= not colliding?

So I found out that Mecanim has some built-in Inverse Kinematic functions which are awesome.

I have some cubes that mimic the position of the hydra and I simply set the IK Goal to be where my cube is.

However my cubes can go through objects/walls and the avatar will reach towards them, however the avatar's hands will ALSO go through the walls! :( Is there a way to prevent the avatar from clipping through objects?

Any help is appreciated! :)

2 Replies

Replies have been turned off for this discussion
  • Hey DarkJames, what you need to do is make the Hydra's control an object, then have another object that has colliders on it an a joint that is locked to the object controlled by the Hydra, then use this object as your IK Goal as it will collide with the environment.
  • Okay cool, which type of joint would you recommend? I tried a few but they don't seem to be working (may have to tweak some more numbers)