- Home /
how to hang a 3d model hanging seamlessly from a camera
Hey guys.. I need to brainstorm ideas reagrding hanging a 3d model from the tree branch.There is a camera attached to the branch.From camera perspective the object looks like it is clutched to the camera. Im making use of accelerometer and as i shake the mobile device the 3d model must react in a way where it must look like a how the response will be when a real human hangs from a branch and when the branch is shook.
Test case:
1)i tried making the 3d model a child object to the tree branch to which the camera is attached . this doesnt make the output look real .
2)i then thought of making using of lookAt function,but how will i control the foot and leg movement to look seamlessly..
Please clarify with me if you think im not clear enuf..
EDIT: something similar to this video http://www.youtube.com/watch?v=TlQVdWIBdHA
Thank you guys
$$anonymous$$aybe you will get a better answer if you add a picture/sketch showing what you mean. I don't think I know the exact answer on your question(so far I understand it), but you probably want to take a look at the different Joint classes(http://docs.unity3d.com/Documentation/ScriptReference/Joint.html) I think you might be able to use those to get the more "natural" movement.
Hi how will you control the foot and leg movement to look seamlessly?
As the other person said, that is not an answer. The area you are using to reply is not meant for questions but answers. If you want to ask a question, make your own don't hijack someone else's.
hey anne , i got to see a video similar to what i need,.. this is way too good.
http://www.youtube.com/watch?v=TlQVdWIBdHA Please use this as an reference to what i need
Okay that's a lot clearer. I would say you can achieve that effect by connecting your character to the camera with some kind of joint. Because joints work with the physics engine making it look natural will depend on the implementation of the joints and on the physics values like gravity. You'll just have to play with those I think, there isn't really a clear-cut answer.
Thanks anne, let me give it a shot ,making use of joint
Answer by Sundar · Aug 07, 2012 at 04:45 PM
Have camera child of 3d object which in turn a child of tree branch.
Tree - 3d object - camera
well i hope you dint understand what i was asking for.