#rear cam steering lines
1 messages · Page 1 of 1 (latest)
well first it depends on how your cars movment system works
because tbh its gonna be really hard if your just using A and D to drive because that doesnt really account for much precision
okay lets say i got a good precision
i could use the actual wheel rotation
okay so this is my guess
so first you would need to know how far the front and back wheels are, because thats gonna tell you how much it turns in relations to the wheel
then i would try something like this
- convert the steering angle to radians
- divide the distance between the wheels by the tan of above ^
okay
how would i make this curved line?
ik there is path2d but im too lost to calculate that
ermm
you could just make the parts
so you start at the wheel
and then you calculate each parts pos, rotation based on calculations you can do
you could have a set number of parts you want to make
and then find out each parts pos, rotation i guess
** You are now Level 4! **
loops, lots of maths