My question is a little difficult to explain (which likely means I'm biting off more than I can chew)...
I have a 3ps vehicle combat game (I use a RigidBody on the vehicle for strafe controls). Which has been working very nicely so far. Then I get the stupid idea to introduce gravity rotation for wall riding...
My current code for testing wall ride:
apply_central_impulse(Vector3(0, 0, -0.1))
apply_torque_impulse(Vector3(0, 0, rot_force))
vel = getWasdInput()
vel = vel.rotated(Vector3(1, 0, 0), deg2rad(90))
I can play with controls to flip the logic around as needed depending on which direction the gravity will be in. For now I'm just trying to get 2 working directions of gravity, down and left. at the current point everything works fine, but "vel" does not get rotated with the vehicle. If I don't rotate the vehicle then everything is wonderful. But if I rotate, then "vel" does not rotate as well.
I've tried many ways, but the transform matrix is confusing. I'm certain there is a much easier way to do this, but at this point I'd be happy with functional. Thanks in advance if anyone is able to assist.