Hey guys, I need a little help, transforms confuse the heck out of me and my brain is frying. My current code works fine, but I want to change it a bit. I just don't know how.
I've been using this code to push a rigid body car forward:
var point = -car_body.global_transform.basis.y*1.15 # I could just add 0.15, I guess, but yea...
car_body.add_force(-car_body.global_transform.basis.z * power, point)
That gets me a point
below the RigidBody (if I understand correctly what I'm doing), which helps tilt the car backward when accelerating.
But I want to try applying smaller forces from the positions of the wheels, instead. The question is, how do I get the position of a wheel relative to the car body, so I can use it in point
?