Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2D Docking to a moving target, (landing direction matters!)
#1
I'm wondering how to start going about coding logic for my aircraft to "dock" on a moving target, where the dock vector is fixed to that target's transform.

I'd like to see flight paths based like in the following pic. 

[Image: TIAP7YD.png]


I guess the first step would be to imagine if that dock was fixed, and then tackle the moving target part? But I'm not sure where to begin, trying to find examples online. Doesn't need to be spline related, but I was thinking Curvy might help somehow?
Reply
#2
I guess I would first try to the problem in two:
* the predefined part: having the landing animation being defined by one or multiple splines (for variation) attached to the dock
* the dynamic part: having the ship reaching the beginning of the predefined part, with the right velocity vector, o avoid the feeling of the ship changing drastically velocity direction when starting to follow the spline.
The first point is simple, the second's complexity depends on what kind of movements are possible for your ships. It would be easier with strafing ships for example.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Trying to create a moving train that slows and stops at stations Novian 7 504 09-13-2018, 08:46 PM
Last Post: ClaudePorter
  Moving spline controller with parent game object jvalenzuela 7 1,012 06-02-2018, 10:44 PM
Last Post: _Aka_
  Direction wont change lllApOlll 3 637 06-01-2018, 03:34 PM
Last Post: _Aka_
  Generate path from point A to point B taking account of direction TheLogan 1 427 05-05-2018, 02:03 PM
Last Post: _Aka_

Forum Jump: