Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Move controller to specific point
#4
You're talking about changing length/distance while animating? Hmm, never tried that, but I bet you'll need to stop, set and restart animation to make it smooth. But in that case I would recommend creating a custom controller for that purpose, it's more straightforward and easier to extend. The key is not to set the controller's position (i.e. transform.position), but controller's relative (TF) or absolute (Distance) position instead.

E.g. add a field for your target TF and override Refresh() to animate Speed based on a tweening, then let the controller do it's usual work.
Reply


Messages In This Thread
Move controller to specific point - by drag_c - 02-21-2016, 05:58 PM
RE: Move controller to specific point - by Jake - 02-23-2016, 07:22 PM
RE: Move controller to specific point - by maharg - 03-03-2016, 01:43 AM
RE: Move controller to specific point - by Jake - 03-07-2016, 08:20 AM
RE: Move controller to specific point - by maharg - 03-09-2016, 03:23 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting Distance from a World Point zorksox 3 5 04-16-2024, 07:30 PM
Last Post: _Aka_
  Set Volume to the Volume Controller at Runtime pako88 2 10 04-08-2024, 03:26 PM
Last Post: _Aka_
  Avoiding runtime GC allocations on control point position change Ell223 8 18 02-24-2024, 10:43 AM
Last Post: _Aka_
  Add noise to spline controller movement DekoGames 2 10 02-06-2024, 01:28 PM
Last Post: DekoGames

Forum Jump: