The game instantiates this object every frame, this object creates two triangles using surfaceTool. The mesh itself is being created and I can see it runtime, but when i create the collision shape from the mesh it returns null.
Don't focus on vertices, I'm sure they are ok, the problem is that it doesn't create a collision shape from the mesh.
mesh = surfTool.commit()
get_parent().get_node("CollisionShape").shape = mesh.create_trimesh_shape()
If I create the shape using createconvexshape(), a shape is created and it works, but I guess that this way is slower.