Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spline always going up into the air?
#1
Shocked 
Hi,

I'm making good progress in general, but one thing I'm finding a lot is the track always starts to go up and then remains raised off the ground. I have made sure the terrain is totally flat (even removed the grass in case it was that! and it still happens. I know there is a conform to shape option but I don't think I'm using it, at least I don't see it! And like I say the terrain is totally flat any way? Are there other things I can check to see why it's doing this?

The code I'm using to lay the track is taking the mouse position but I don't think it's that causing it as I 0 the Y axis. The terrain is at 0 and the main spline object is at 0, so I'm getting really confused. It doesn't keep going up by the way it reaches this sort of height then stays at it if that helps.

track.Add(new Vector3(hit.point.x ,0,hit.point.z));


[Image: Untitled-1.jpg]

Well, I seem to have worked it out but now getting another error... I had set the collider to convex and it seems that makes it rise up against itself as if its terrain/an object?

But turning off convex now gives me the error below, trouble is I can't un-tick trigger as it's greyed out?

Triggers on concave MeshColliders are not supported
UnityEngine.ColliderConfusedet_isTrigger(Boolean)

[Image: Untitled-2.jpg]
Reply


Messages In This Thread
Spline always going up into the air? - by jamesunity - 07-17-2020, 10:22 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: