-
-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The collision seems to be lost in the Editor but not when playing the Scene #129
Comments
I added some debug code in the plugin which throws a bunch of raycasts down to see where they land on the terrain (if they ever land). The collider is correct. I could not reproduce the problem by just switching scenes, unless you meant closing and reopening them? I tried the "Page Down" tool, it just doesn't work. Even though my collision tests did. In fact, it snaps to somewhere way higher than the terrain, while the boxes I snapped using I tried with the scatter plugin, could not reproduce the problem. I opened two scenes with a terrain in them, put a scatter node in one, switched to the other, clicked "Save All Scenes". The collider of the second scene was still correct. I switched to the first scene, the collider also remained correct and the scatter plugin continued to work. Note: currently the collider does not update automatically when the terrain is modeled, which is done by going to |
Thanx for your investigations. I'll tried to send you a simplified demo file later today. Is it possible in GitHub or do I have to make a link? |
If your project is small enough you can zip it and drag and drop in a github post. |
With the heightmap and all the png, it's 100Mo. When cleaning the project, the bug seems to have evolved a little bit: Note: it always print "Paint scenes" in the Output window even when it do not put a new scatter object. I have removed the 2de scene with the 2de Terrain from the projet. |
From what I can see so far, the collider appears to only exist within the +X+Z quadrant of the map. No hits get registered elsewhere. The hits within the collidable area are correct so it's not really offset. I'll keep investigating the cause. |
I can also confirm this does not reproduce in-game. This is really specific to the editor... |
I'm trying to use the Scatter plugin an the snapping with "Page Down" shortcut and It do not always works.
It's a bit fishy because sometimes it comes back when I'm loading an other scene with a Terrain and then I work everywhere again.
I have a more precise case to describe:
My project have 2 scenes. Each scene have 1 Terrain Node in 4k.
When I "Save All Scenes", the Scatter Tool still works on the current scene.
But when I switch to the second scene, It do not works anymore.
Then I go back to the first scene and It is not working either.
And when I switch again on the second scene, everything seems to go back to normal.
Hope that's clear,
Ron
The text was updated successfully, but these errors were encountered: