You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description:
I created a scene with a tree, the tree contains a static body with collision. The idea is that the tree is scaled according to its growth.
Use that same mechanic to create more trees
I created several instances of these different trees in the main scene,
The problem is that once the static body is scaled, the collisions in the whole scene stop working, even the collisions of platforms and other nodes that have nothing to do with the tree.
The error only occurs if there are several trees of different types, with a single type of tree nothing happens.
Try creating trees one by one without duplicating anything (scenes, mesh, statc body). But nothing worked
My solution was to scale only the collision shape and not the static body, for this I had to separate the static body from the mesh in order to scale the mesh and the collision shape without touching the static body.
Steps to reproduce:
Create a scene for the tree
create a mesh with the tree model (I used a tree object from kenney.nl)
create a static body either using the mesh button in the menu or doing it manually, the error occurs in both cases.
Create another scene with another tree and repeat the process.
create main scene, with player (kinematic body, with collisions)
Add trees of different types to the main scene and create a script where the trees are scaled by manipulating the mesh and the static body, not the whole scene. (I used a timer to call the scaling function)
Remember to add a platform to pose the player and the trees.
Minimal reproduction project:
Just start the main scene called world.
Godot version:
3.2.3
OS/device including version:
Ubuntu studio 20.04
Issue description:
I created a scene with a tree, the tree contains a static body with collision. The idea is that the tree is scaled according to its growth.
Use that same mechanic to create more trees
I created several instances of these different trees in the main scene,
The problem is that once the static body is scaled, the collisions in the whole scene stop working, even the collisions of platforms and other nodes that have nothing to do with the tree.
The error only occurs if there are several trees of different types, with a single type of tree nothing happens.
Try creating trees one by one without duplicating anything (scenes, mesh, statc body). But nothing worked
My solution was to scale only the collision shape and not the static body, for this I had to separate the static body from the mesh in order to scale the mesh and the collision shape without touching the static body.
Steps to reproduce:
Minimal reproduction project:
Just start the main scene called world.
minimo_error.zip
The text was updated successfully, but these errors were encountered: