View Full Version : dynamics driven car?
04-21-2010, 03:31 PM
3ds max has some tools for constraining objects together, while allowing them to interact with geometry around them dynamically.
If I wanted to make a vehicle of sorts that could move on it's own by the spinning of the "tires" causing friction on the "ground" causing it to move forward, how would one do this in Maya?
I tried grouping multiple objects together, and animating one, but it passes through collision objects.
any easy fixes for this?
This works in Maya too...
04-23-2010, 04:46 PM
Thank you, i checked the link out, and it looks very promising. however, I am not in the position to buy any more software, and I was trying to find a way to put a basic proof of concept together in maya my self, and go from there.
04-23-2010, 05:52 PM
Could just use an expression to drive a wheels rotation as its translation is changed.
04-23-2010, 06:54 PM
I don't think there are any easy solutions for this but there are many. You could go the rigid body route and connect the parts together through constraints and parenting. You could also connect your car node to a distance utility. The distance utility would then be connected to a null that is constrained to the surface. Insert a condition utility to keep the car node a set distance away from the surface. You could then further that with a rigid body suspension of sorts. Sorry these are all rapid thoughts!
04-23-2010, 07:55 PM
thanks bending, that's the first thing I thought too, why not key a rotation with an expression, would be easy to control wheel speed etc later.
I set up a simple test and gave it a shot, a cube, with a long skinny rectangle, both grouped together. I made an expression to rotate the long skinny cube, thinking it would make the bigger cube flip over or just plain out move. however, it just went through the ground plane, it still highlighted it during sim, so maya knew it was penetrating... just didn't know what to do.
tpalamar, I like your suggestion too, and I'll play around with it, I was hoping for a fully dynamic, "un attached, or uncheated" solution if you will, but it may turn out that it may work better with some control elements like you're talking about with the null.
I need to play around with constraints more, see if any luck will come with that, thanks for your suggestions so far everyone!
04-23-2010, 08:50 PM
so i tried a hinge constraint, and that orients and constrains it right for the most part, but setting spin impulse accelerates the spin, not a constant turning. and that aside, it seems to not spin it locally around it's axis, but around world space or something like that.
any ideas on this path?
04-23-2010, 08:50 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.