deltaluca / nape

Haxe/AS3 Physics Engine
http://napephys.com
Other
542 stars 77 forks source link

haxe 3 compatible PhysicsEditor Exporter #84

Closed dox187 closed 10 years ago

deltaluca commented 10 years ago

Since there's no diff, could you quickly explain what actually had to be changed?

Would it be possible to have these changes put under #if haxe3 conditionals to avoid the need for an entirely seperate plugin?

Khranos commented 10 years ago

These may or may not work, but to my best judgement, they do not.

Exporter -

I replaced the default PhysicsEditor exporter ( C:\Program Files (x86)\PhysicsEditor\Exporter\plain ) with the exporter given (in the correct .xml format), and it still had the same issues as the regular. I kept the same "Plain.txt" file in the folder however, since I couldn't find anything which should be put in that. Maybe that was the issue? (It looked like an important file)

Plugin -

Honestly, I had no idea where to put this. So, I copied and pasted the code into the PhysicsData class and modified accordingly for the files. However, I received this error when trying to compile the project -

src/PhysicsData.hx:200: characters 9-10 : Unexpected %

That was right when the %'s began, so I can pretty easily assume those are being used wrong, or I've got some strange options set.

dox187 commented 10 years ago

these files ( https://github.com/dox187/nape/blob/master/plugins/PhysicsEditor/nape-hx3/nape.hx and https://github.com/dox187/nape/blob/master/plugins/PhysicsEditor/nape-hx3/Exporter.xml ) copy to "C:\Program Files (x86)\PhysicsEditor\bin\exporters\nape-hx3"