BulletSharpUnity3d icon indicating copy to clipboard operation
BulletSharpUnity3d copied to clipboard

BSoftBody editor not saving mesh data?

Open iakat opened this issue 5 years ago • 4 comments

Hi, I am having this issue but I am not sure whether I am doing something wrong or not.

I am running the git version of BulletSharp, and I even tried #54 with no luck.

BSoftBody editor for me does not save the mesh data which results in not being able to edit+save any settings, see this video for an example

Even getting all settings right and then trying to save it, I get this error when play testing, where Wheel 1 is my BSoftBody.

Could not build mesh from meshSettings for Wheel 1 (BulletUnity.BSoftBodyWMesh)
UnityEngine.Debug:LogError(Object)
BulletUnity.BSoftBodyWMesh:_BuildCollisionObject() (at Assets/BulletUnity/Scripts/SoftBody/BSoftBodyWMesh.cs:33)
BulletUnity.BCollisionObject:GetCollisionObject() (at Assets/BulletUnity/Scripts/BCollisionObject.cs:168)
BulletUnity.BSoftBodyEditor:OnSceneGUI() (at Assets/BulletUnity/Scripts/Editor/BSoftBodyEditor.cs:239)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Any tips would be appreciated. Thanks!

iakat avatar Sep 22 '20 14:09 iakat

I think this happens to a lesser degree to the RigidBody editor as well, where the mesh renderer does not get the mesh data

iakat avatar Sep 22 '20 16:09 iakat

Will try to take a look later today. Are you using Unity 2019?

Phong13 avatar Sep 23 '20 20:09 Phong13

Yes, 2019.4 (full version on the top left in the video linked). Thanks a lot!

iakat avatar Sep 23 '20 21:09 iakat

I am able to reproduce the problem. Hope to push a solution in a few days.

Phong13 avatar Sep 24 '20 23:09 Phong13