Calculating rotation along a path

前端 未结 6 414
暖寄归人
暖寄归人 2021-01-03 09:52

I am trying to animate an object, let\'s say its a car. I want it go from point

x1,y1,z1

to point x2,y2,z2 . It moves to those points, but

6条回答
  •  萌比男神i
    2021-01-03 10:09

    Always pointing the car toward the destination point is simple and cheap, but it won't work if the car is following a curved path. In which case you need to point the car along the tangent line at its current location (see other answers, above).

提交回复
热议问题