07-17-2020, 10:22 PM
(This post was last modified: 07-17-2020, 10:42 PM by jamesunity.)
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));
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.Collideret_isTrigger(Boolean)
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));
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.Collideret_isTrigger(Boolean)