3d_car_tutorial icon indicating copy to clipboard operation
3d_car_tutorial copied to clipboard

bUG

Open WSPluta opened this issue 3 years ago • 0 comments

Hey,

I have used your tutorial to create a mini game. I have tried to replicate it for a model that Im using. However when I run it I keep getting

E 0:00:01.083   set_axis_angle: The axis Vector3 must be normalized.
  <C++ Error>   Condition "!p_axis.is_normalized()" is true.
  <C++ Source>  core/math/basis.cpp:980 @ set_axis_angle()
  <Stack Trace> Car.gd:47 @ calculate_steering()
                Car.gd:30 @ _physics_process()

which is pointing at front_wheel += velocity.rotated(transform.basis.y, steer_angle) * delta and calculate_steering(delta)

any ideas?

you can try it here https://3dpr.ddns.net/rooms/RBRML/

WSPluta avatar May 11 '21 09:05 WSPluta