godot icon indicating copy to clipboard operation
godot copied to clipboard

Trimesh Static bodies generated incorrectly

Open Einlander opened this issue 10 years ago • 3 comments

Operating system or device: Windows 7

Issue description (what happened, and what was expected): The [Create Trimesh Static Body] menu option produces incorrect collision meshes. The dae import has the most significant errors. Some of the dae shapes are visually wrong, and are offset from the actuall mesh. The obj import looks like rounding errors.

Obj import trimesh collision

Steps to reproduce: Files are in the zip. DAE:

  • Import and open mesh
  • Click the [Create Trimesh Static Body] button on all mesh nodes
  • Add camera and point it at the pole with the sphere on top

Bugs:

  • All collisions objects are on an offset.
  • The sphere shape is square shape

DAE Images

  • http://imgur.com/0bFwyBU
  • http://imgur.com/tixoYyL

OBJ

  • Click the menu option Import > 3d Mesh
  • Select the obj
  • Select normals, unselect weld vertices.
  • Look at back left or right corner.

Bugs:

  • The ground collision mesh does not extend to exactly the back edges

Obj images:

  • http://imgur.com/kqkW5e0
  • http://imgur.com/U1typag

I don't know if the bugs would accumulate the bigger the level is.

Link to minimal example project (optional but very welcome): Turn on visible collision shapes. Run the project for easier comparison trimesh collision bug.zip

Einlander avatar Mar 06 '16 06:03 Einlander

I hope this issue is the main cause of this: #3845

DriNeo avatar Mar 06 '16 11:03 DriNeo

This is fixed in the current Godot 3 tip:

bildschirmfoto

capnm avatar Nov 08 '17 12:11 capnm

Thanks for testing, closing.

akien-mga avatar Nov 08 '17 12:11 akien-mga