Closed ardawan closed 4 years ago
It is a bug coming from both plugins:
The terrain plugin is not registering its node to the collision queries, so when you get the result from a raycast, collider
is null
. This is not always a bug (if there is no node to refer to), but in this case it is because there is no reason to not provide the terrain node you hit.
The scatter plugin assumes collider
is never null
, but nothing enforces that in the Godot API. Fortunately, it's an easy fix because it's only needed to ensure the scatter layer isn't colliding with itself. In case collider
is null
, it should just pass the check.
Sorry for the very late answer, Github doesn't notify me of new issues...
I fixed the error in this plugin in 92ffa27a37206aa9dc93c1d5567209b218c363d9
You can try with the master
version of the plugin from this repo.
I'm not getting that error but it still does not instance a scene into my parent scene. It only says Paint scenes
, my world-scene wants to be saved because of changes but nothing has changed at all.
Is the error on my side? (Side note: Using Godot 3.1 stable and version 1.0.1 of your plugin from the AssetStore)
Screenshot:
Testproject: scattering.zip
@pwab in your case there is nothing to paint onto. That's why nothing happens, your scene is empty (doesn't even have a floor). This plugin relies on existence of a floor with collision.
Oh thanks for the clarification. So I need a Staticbody as a ground?
Maybe there could be one or two sentences about the usage of the plugin. I barely can see the process of adding things in the provided gif. Maybe add a short numbered list with each step?
@pwab I added details https://github.com/Zylann/godot_scatter_plugin/blob/master/README.md#how-to-use
Works perfectly now. Thanks 👍
is that a bug or im not following the instructions?