- Home /
How To calculate the points of a curved movement path with steering constraints? (2D)
Hello Community!
I seem to be kinda stuck on the following issue. Currently im working on a top-down turn based game, and if the player selects an entity and clicks on a position to plan a move to that position I need the to do the following:
Plan a path from start position to end position.
this path should be planned with turningradius in mind, which means the entity cannot turn on a place, but needs to move and turn gradually.
my finished function should be able to handle special cases like in the picture.
The points of the path should be (doenst have to if other solution possible) returned as a vector2 array or something similar. In addition the rotation of the point should be returned (im currently using a struct with position/orientation values).
This is not meant for the movement (next step), but just to get the points and rotations of the path.
Ive been researching this for quite a bit of time now, I know unity steer, but it doesnt fit with the turn based part (i think)
Do you know a possible approach/script/middleware to solve my problem? Many thanks!
Update: Im researching the following methods right now:
Vectrosity curve/spline
Tweening engines
fixed colliders to avoid waypoints not fitting with turning radius.
So far no solution, ill keep on working
Last Update:
I will develop (half-finished right now! :) ) it myself. Look into Dubins Curve if you want to do it yourself.
Your answer
Follow this Question
Related Questions
Accelerometer car steering and screen tilt control function 2 Answers
2d Raycasting, trouble drawing rays at the correct angles 1 Answer
Combining Seek and Flee steering forces causing problems 0 Answers
Grid based movement collision detection 1 Answer
Turn-based small scale multiplayer: server-only-logic possible? 2 Answers