Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Moving Rigidbodies On Spline With Force
#2
After delving deeper into the issue, I clarified the problem and I hope the maintainers will help me solve it.

When pushing the object on a spline using Force, the force vector stays the same across the entire motion until a = 0. That means that on a right turn, your direction may be (-1, 0, 0) yet given that the force starts at (0, 0, 1), the force is in entirely the wrong direction and the object can't possibly stay on the spline.

The obvious work around is to have a subclass that would simulate pushing a force. Mainly, the subclass would only calculate the speed of an object pushed by F over delta time, and return only the velocity of the object. That velocity can be passed directly to a Spline/Volume controller.

Unfortunately, I do not have the familiarity with the internal CurvySpline doings to write this extension. Was wondering if the maintainers could think of an easy fix.
Reply


Messages In This Thread
RE: Moving Rigidbodies On Spline With Force - by nibab - 10-11-2016, 08:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_
  GO can't fit end of the spline GameDeveloperek4123 3 14 03-04-2024, 11:06 AM
Last Post: _Aka_

Forum Jump: