Phong13 / BulletSharpUnity3d

A fork of the BulletSharp project to make the Bullet Physics Engine usable from C# code in Unity3d

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

issues on IOS build

franckmolto opened this issue · comments

there are conflicting problem with
getfacevertexdata
facevertexnormaldata
linkvertexnormaldata and tetravertexnormaldata c++ declarations in softbody.cs
when using il2cpp, because they are duplicated for Vector[] and float[].
Il2cpp transform them as btscalar* ans it makes a conflict when building in xcode

Hi Franckmolto

Thanks for submitting this. Unfortunately I am away from my office (where my Mac is) until the end of August so I won't be able to look into the problem until then. I am surprised you are seeing a conflict though since I have been able to build for iOS recently. Any idea why you are seeing this problem an I am wasn't?

No idea,

It seems that both functions type with vector3 and float ends as the same type, and as functions have the same names it breaks.
Maybe it is due to Unity 5.4f3.

I hacked a bit softbody to remove functions so that functions are not duplicated with only vector3 array and float array changing, and it works fine ( I don’t need softbody for now)

Thanks for the update. I am curious to look into this when I get back.

I want to build this projiect on iphone8,saw the same issues,How do you solve this problem?

I would suggest removing one of the duplicated functions, either the Vector3 version or the float version to prevent the name collision.

It is worked ,delete plugins for linux, Xcode setting ENABLE_BITCODE no