ashoulson / VolatilePhysics

A 2D Physics Library for Networked Games
Other
260 stars 44 forks source link

Unity examples not working at all. #16

Closed slawo closed 8 years ago

slawo commented 8 years ago

Hi, I was about to test the library using Unity 4.7.0.

Unfortunately the scenes are empty.

Also Activating VOLATILE_UNITY creates numerous bugs and stops the project from compiling.

Is there a stable version I could use to do some testing?

ashoulson commented 8 years ago

All of the Volatile demos are done in Unity 5. I'm not sure about how backwards compatibility will work with the scenes. I'll check on the VOLATILE_UNITY flag though. Could you post the errors? You may need to add the UnityEngine.dll to your project if you're building against it for Unity compatibility.

slawo commented 8 years ago

OK! Thank you for pointing that out. Just tried the demos with unity 5 and yes they work.

As to the errors it's mostly missing functions like Assert and Co implemented in VolatileEngine.Debug but not in UnityEngine.Debug...

Also:

Assets/__TEST/VolatilePhysics-master/VolatilePhysics/Body.cs(74,41): error CS0121: The call is ambiguous between the following methods or properties:Volatile.VolatileUtil.InvRotate(this UnityEngine.Vector2, UnityEngine.Vector2)' and Volatile.VolatileUtil.InvRotate(this UnityEngine.Vector2, UnityEngine.Vector2)'