Learna Posted April 21, 2020 Share Posted April 21, 2020 (edited) On 15/10/2019 at 6:00 AM, julian johnson said: Hi K'n'K, glad you liked it. I'm in the middle of a job at the moment so I can only give you brief pointers. You are right, though, I think it can all be done in the distance travelled CHOP. For reverse you need to establish some concept of what constitutes forwards and what constitutes reverse. I think using the tangents of the path curve and bringing them into CHOPs would be the way to do that - then compare the slope vector with the tangent vector. A dot product between the two would give less than 0 for reverse and greater than zero for forwards. Then just multiply the result of the area chop (length) by -1 to negate if you want to reverse (using the dot product to tell you whether you need to). For wheelspin I think a simple animated add to the length chop would do (for a manual spin) or using the acceleration to procedurally increase the length if it goes over a certain threshold. CHOPs are fiddly so it might take a few tries to get it right! Thanks man but I noticed if I change the keyframe on "animation_along_path" from 1 - 240 to something else, say 200 - 440. The wheel doesnt spin as soon as it gets past frame 240. How would I go ahead to make the wheel spin if I extended the animation past frame 240? Edited April 21, 2020 by Learna Correction of path name Quote Link to comment Share on other sites More sharing options...
Learna Posted April 21, 2020 Share Posted April 21, 2020 On 19/10/2019 at 6:49 PM, K'n'K said: Oh nice. A simple math node with an animated "post add" works fine for wheelspins and braking. Thanks! Please, can you guide me on how to change the start and end frame of the simulation? If I change the key frames available on the "animation_along_path" node from 1 - 240, to say 200 - 440, the wheel doesn't spin as soon as it gets to 240. Quote Link to comment Share on other sites More sharing options...
julian johnson Posted April 23, 2020 Share Posted April 23, 2020 Have a look in here. All I've changed is the animation along the path, the time start/end in the fetch node in the distance travelled chop and I've had to kludge the constraint on the steering object to work past frame 240 by hard setting the sample rate.... car_rig_bullet_julian_offset.hipnc 3 1 Quote Link to comment Share on other sites More sharing options...
Colemapt Posted August 29, 2020 Share Posted August 29, 2020 On 9/17/2019 at 7:13 AM, julian johnson said: It's been a while (!) but here's an interim development of the original double wishbone chassis concept. Now you can fully adjust chassis to match car - it's all done via names - so you can transform the model in any way you like (just don't change the point numbering as constraint naming is based on point numbers). Effectively bullet is used to make the constraints easy and the only real simulation is on the wishbone springs. Wheels are pre-animated along a path and then adjusted for roll, ackerman steering angle (inner and outer wheels at different angles). Still quite tricky to adjust the sim because mass, spring strength/damping, load transfer and conetwist maximum angles are all interrelated - change one and you need to change all the others! This test Porsche is overly springy to illustrate the basic concepts at work especially the load transfer forward to back. Needs more work on rest to action transition period, too! To change the car simply bring the new car and wheels into the chassis node and swap out, make sure to transform chassis geo to fit. Change path, collision ground as you see fit.... car_rig_bullet_julian.hip Hey Julian! This is awesome! Trying to mess around with it right now, but I'm in H18 not sure if that matters and the car does not seem to want to follow the path, The sim works fine and suspension works but all it apears to do is pop up on top of the geometry and kinda wiggle for a sec, am i just an idiot missing something basic? Quote Link to comment Share on other sites More sharing options...
tagosaku Posted August 29, 2020 Share Posted August 29, 2020 Yeah, I confirmed the file does not work properly for H18. I guess CHOP nodes are something changed.... Quote Link to comment Share on other sites More sharing options...
julian johnson Posted August 30, 2020 Share Posted August 30, 2020 (edited) It seems to work in all versions of 18.0.x up until 18.0.499. Up until then, somehow, the Transform Pieces node could apply non-named template attributes from a single point to all four wheel points. In 18.0.499 the points have to be matched by a name attribute for it to work. Possibly SideFX have fixed a long-standing bug or broken a normal piece of functionality. No idea which :-) car_rig_bullet_julian_18.0.499.hip Edited August 30, 2020 by julian johnson 8 Quote Link to comment Share on other sites More sharing options...
kalone Posted October 25, 2020 Share Posted October 25, 2020 Dear all. I tried to understand how you created this rig but for someone without any knowledge what quaternions are or how to code it's out of reach. Therefore I'd like to ask you if the final result could created without coding? Just by wiring together nodes? Quote Link to comment Share on other sites More sharing options...
tamagochy Posted October 26, 2020 Share Posted October 26, 2020 Simple answer NO Quote Link to comment Share on other sites More sharing options...
Stotty Posted November 18, 2020 Share Posted November 18, 2020 (edited) Does anybody know why Julian's set up works in 17.5 but breaks in 18? Edit: Julian has answered this above and posted an updated scene file with the points matched by a name attribute Edited November 18, 2020 by Stotty Quote Link to comment Share on other sites More sharing options...
Shantanu Posted October 19, 2021 Share Posted October 19, 2021 On 8/13/2018 at 9:51 PM, mois23 said: I tried with this solution (please find hip file attached) but spring constraint doesn't work. Can't figure out why. Here the .abc file I'm using. Anyone can help? Car Destruction v04.hip can you share the abc 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.