mihai architect Posted October 17, 2008 Share Posted October 17, 2008 Hi guys ! I have a problem with a geometry that I don't know how to make it stick onto another, along the animation. The objects are not aligned when moving. You will see what I mean. I attached a hip file as example. Thank you ! constrain_problem.hipnc Quote Link to comment Share on other sites More sharing options...
michael Posted October 17, 2008 Share Posted October 17, 2008 I'm not sure what you want to happen here... should the capsule object follow exatly with the box? and the gun object point at the target? Quote Link to comment Share on other sites More sharing options...
mihai architect Posted October 17, 2008 Author Share Posted October 17, 2008 exactly ! The capsule object should not only follow the box object but it should stay on the top face of the box and rotate around Y ( perpendicular to that face) while still aiming at the target. Quote Link to comment Share on other sites More sharing options...
edward Posted October 18, 2008 Share Posted October 18, 2008 I think the problem is that you're not computing the rotations in the right space. I've attempt to correct that in the attached file. The gun though, I've left to move freely as I think that mimics more closely the real world situation. Of course in the real world, there's limits to the gun's rotations. constrain_problem2.hipnc Quote Link to comment Share on other sites More sharing options...
mihai architect Posted October 18, 2008 Author Share Posted October 18, 2008 I think it's very ok. It's what I was looking for. The gun and the turret should not spin over and over like in real world, but it's just about the principle, so I was not interested in that. The perfect aiming tough it's very realworld like. Nowadays there are systems that can aim a target while still moving freely on the terrain. That is what I was trying to achieve. I see you used Objects CHOPs whitch I didn't knew how to work with. But that solved the problem. Anyway it's a bit more complex than I expected. When I first started I thought it would be easier. Many thanks. If anyone could make it in some other way I would appreciate. Thank you ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.