I am NOT a programmer. I know very little about physics math, I basically have no clue. I am however very skilled with "cut and paste" and "search and replace" 😉. I use a 2D animation program called Anime Studio Pro that has a pretty darn good lua scripting back end. I recently started to add in some physics functionality by "porting" to lua some action script physics code I found on the internet. Here are my "exciting" results (Hey! They thrilled me beyond belief!):
http://www.lowrestv.com/moho_stuff/scripts/gravity_collision_detection.mov
http://www.lowrestv.com/moho_stuff/scripts/physics1.mov
http://www.lowrestv.com/moho_stuff/scripts/angle_bounce1.mov
http://www.lowrestv.com/moho_stuff/scripts/springs1.mov
I want to add more features and make it better... I don't know if Box2D is the solution or if it would even be usable in Anime Studio (scripts are linked as text files, no "compiling" of lua scripts). The program itself already has "bones" which is what I use for the physical "objects". I use the bone length as the "radius" for collision detection. It also has drawn vector "layers" similar in some ways to Flash that can be bound to the bones. This means that joints and bone hierarchies are "built in". I would like to add in the "vector" aspect for irregular shaped object physics. That was what I was working on when I found Box2D. I know also that the BEST solution would be for the developers to add a physics engine to the application, but I don't see this happening anytime soon.
I was actually thinking of "porting" the "Flash port" to Lua but... yikes... that might just be too crazy (Flash is "upside down" and rotates "backwards" unless they "fixed" that recently).
I plan to keep going on my own with what I have but would love... a shortcut. 😉 I did search here for Lua and came up with only one topic that mentions it as it an unrelated issue. Like I said... I'm not a programmer in real life... I pretend to be one... like a kid wearing a towel around his neck pretending to be superman. 😉
Any advice appreciated. You can also make fun of me and poke me with sticks it you like. That's always fun.
-vern
http://www.lowrestv.com/moho_stuff/scripts/gravity_collision_detection.mov
http://www.lowrestv.com/moho_stuff/scripts/physics1.mov
http://www.lowrestv.com/moho_stuff/scripts/angle_bounce1.mov
http://www.lowrestv.com/moho_stuff/scripts/springs1.mov
I want to add more features and make it better... I don't know if Box2D is the solution or if it would even be usable in Anime Studio (scripts are linked as text files, no "compiling" of lua scripts). The program itself already has "bones" which is what I use for the physical "objects". I use the bone length as the "radius" for collision detection. It also has drawn vector "layers" similar in some ways to Flash that can be bound to the bones. This means that joints and bone hierarchies are "built in". I would like to add in the "vector" aspect for irregular shaped object physics. That was what I was working on when I found Box2D. I know also that the BEST solution would be for the developers to add a physics engine to the application, but I don't see this happening anytime soon.
I was actually thinking of "porting" the "Flash port" to Lua but... yikes... that might just be too crazy (Flash is "upside down" and rotates "backwards" unless they "fixed" that recently).
I plan to keep going on my own with what I have but would love... a shortcut. 😉 I did search here for Lua and came up with only one topic that mentions it as it an unrelated issue. Like I said... I'm not a programmer in real life... I pretend to be one... like a kid wearing a towel around his neck pretending to be superman. 😉
Any advice appreciated. You can also make fun of me and poke me with sticks it you like. That's always fun.
-vern