Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Having trouble moving projectiles from spline
#4
**Update**
ok so I changed the line in the curvylaser1 script from transform.parent.localEulerAngles = laserRotObject.localEulerAngles to laserStartPos; = transform.parent.localEulerAngles;

If I set the lasers speed to zero, (setorientation is true and dynamic is true) then it spawns right where it needs to be, in front of the ship at the ships rotation. Then when I change the speed to more then zero, the lasers rotation(the aligntospline component) wants to snap back to its default rotation. If I change the setOrientation to false, then it will shoot normally, infront of the ship at its rotation, but the laser will not keep its orientation along the spline, it will rotate a bit as it travels. If I uncheck dynamic, it will just spawn at its default position and rotation, position being zero and not that of the ship. It seems to want to "refresh" whenever dynamic is unchecked and setOrientation is checked. Im not sure if I should try and override the refresh command or what. I hope you can look at this and give me some anwsers cause im really struggling with this.
Reply


Messages In This Thread

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: