Closed usbhell closed 4 years ago
It seems the line mesh.get_faces() was causing the crash in the second method. I guess create_trimesh_collision() does the same and explains why it also causes a crash.
Creating my own faces array and omitting that call solved my problem.
var shape = ConcavePolygonShape.new()
shape.set_faces(mesh_data_array)
get_node("StaticBody").add_shape(shape)
I suggest reopening, mesh.get_faces() shouldn't be crashing on any OS.
No problem, reopening
Fixed in the master branch (at least after #34794).
Godot version:
2.1.5 Stabe
OS/device including version:
multiple android devices
Issue description:
I'm creating some procedural Terrain and attempting to add a collision object. It works fine on my pc/mac but crashes on my android devices. The attached project attempts to do the same with the default blender cube and crashes on all my devices too. I feel I must be doing something dumb.
or
Steps to reproduce: run the attached project on an android device
Minimal reproduction project:
collision.zip