CollisionShape3D non-uniformly scaled warning
Asked Answered
V

2

0

Hello, I'm starting to learn about Godot 4 and I'm having a poblem.
I create a new scene with a 3D Node as root, then I add to it a StaticBody3D and to the StaticBody3D I add a MeshInstance3D using a BoxMesh.
Now I scale this mesh 100 along X and Z axes, 1 along the Y axis to have a kind of a plane as ground.
Finally I give a CollisionShape3D to the mesh and Godot shows a warning saying "A non-uniformly scaled CollisionShape3D node will probably not function as expected. Please make its scale uniform, and change the size of its shape resource instead."

What should I do? I am confused, how do I set the size of the mesh and not its scale?

Vann answered 25/3, 2023 at 15:7 Comment(0)
A
0

You should keep the scale for the axis the same.
Instead change the sizes under Shape, by clicking on the BoxShape3D.

Adelladella answered 25/3, 2023 at 16:2 Comment(0)
V
0

Thank you so much, I've just noticed that the Size panel is not visible just as you select the shape, it shows up if you then click on "BoxShape3D".

Vann answered 25/3, 2023 at 16:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.