PDA

View Full Version : Stick car to varied ground?



objuan
08-12-2018, 06:45 PM
I know I've seen posts on this before, but searching isn't quite bringing it up for me like I hoped.

I have a car on a road that ramps up and down a little bit. How can I just animate the car's center null in X and Y, and automatically put it's Y on top of my road mesh? And preferably also adjust pitch?

Thanks!

Ma3rk
08-12-2018, 09:21 PM
You might look into RayCast, but your best bet assuming you've LW 2018 is to examine the car scenes under Bullet_Dynamics folder.

MonroePoteet
08-13-2018, 08:20 AM
If you choose not to use Bullet for the collision detection, using RayCast Geometry is fairly straightforward.

1) Keyframe your car's Y position above the road at all points and the X,Z positions to define its path across the surface
2) Use RayCast Geometry to detect the road
3) Use the ConvertHitNormalToHPB node to convert the RayCast Geometry Hit Normal output to Heading, Pitch and Bank on the car

I normally extract the Pitch and Bank using Vector Scalar nodes, and use Align to Path to control the vehicle's Heading.

Using Bullet Constraints as in the example LW2018 scenes will probably give a more realistic scene if you want / need the wheels to adjust individually to the variable ground.

The ConvertHitNormalToHPB node is in the LW2015 content under Nodes=>RayCast Assist=>RayCast-NodalMotion folder, but doesn't appear to be included in the LW2018 content.

mTp

Wade
08-13-2018, 09:16 AM
Others have done a good job of it - https://www.youtube.com/watch?v=spDHrFATxXI but this is past my knowledge. Looking forward to seeing where you take it.

AND THIS GUY!
https://www.youtube.com/watch?v=p1qOfsg50qo

objuan
08-13-2018, 10:16 AM
Mine will be nowhere near as cool as Dr Melon there. That is a nice rig, and a cool model. Thanks for the tips y'all.

Markc
08-13-2018, 11:34 AM
Rebel Hill has some tutorials (but they are not free).
Available on Liberty 3D website......:)

142497

erikals
08-13-2018, 01:21 PM
also check OD Tools plugin
https://vimeo.com/search?q=OD+Super+Vehicle+Setup+Pro

adk
08-14-2018, 05:08 PM
also check OD Tools plugin
https://vimeo.com/search?q=OD+Super+Vehicle+Setup+Pro

Oh cool ! Didn't even know this was available. I really need to go through ALL the tools Oliver has :)
He's so prolific that it's hard to keep up.

erikals
08-14-2018, 06:36 PM
he's a Coding Monster!   :)

https://i.imgur.com/5iDKqDX.gif

jeric_synergy
08-14-2018, 07:52 PM
Excellent thread!

XswampyX
09-04-2018, 03:13 PM
Bullet will do it!


https://youtu.be/NdUmkF25ctc

Here's the scene. I've added in some steering, just rotate the null "steering".

50one
09-04-2018, 04:15 PM
Oddly enough, that's quite entertaining to watch Swampy :)

XswampyX
09-04-2018, 04:33 PM
Oddly enough, that's quite entertaining to watch Swampy :)

Ta!

I left a lot of the bounce in so you could see that it was working, but then it came out almost like it was a cartoon animation, also the poor old cart is a slave to gravity. It has no input into this scene.

Poor old bouncy cart. :-D

Ma3rk
09-04-2018, 10:18 PM
Oddly enough, that's quite entertaining to watch Swampy :)

Ya, wasn't exactly a Test test, but then once ya get playing with Bullet, these things happen.

adk
09-05-2018, 04:24 PM
Hot diggity damn XswampyX that looks very fun to play with ... gotta check that out when I have time :)

MonroePoteet
09-05-2018, 08:42 PM
That's just great fun to watch! Nice sequence, XswampyX! Talk about "upsetting the apple cart"! :)

mTp

Gungho3D
09-06-2018, 09:09 PM
Bullet will do it!


https://youtu.be/NdUmkF25ctc

Here's the scene. I've added in some steering, just rotate the null "steering".

That is entertaining as well as generous ...

JamesCurtis
09-09-2018, 08:38 PM
Cool!!!