I am building a game that has automobile traffic, and I have a series of points that these cars follow, all working fine in DOTS (yay. They’re hover cars so there are a lot of them, so thank goodness for DOTS)
However I would like the cars to tilt/bank as they move around corners. I have an array of float3 (IBufferElementData) and would like to compare the auto’s current point against the next point to see if the next one is left or right of the current on, and my how much
I found code that works with VECTOR3, but translating it doesn’t work as it uses a number of functions in the VECTOR3 object that are not available in the FLOAT3 object… or, and this is a big probability, I am making things more difficult and there is an easier answer.
Anyone got a hint for me?