http://www.lowrestv.com/moho_stuff/scripts/physics1.mov
http://www.lowrestv.com/moho_stuff/scri ... sics1.anme
http://www.lowrestv.com/moho_stuff/scripts/physics1.lua
file not found
Scripted "physics" for bones! Collision detection!
Moderators: Víctor Paredes, Belgarath, slowtiger
- patricia3d
- Posts: 726
- Joined: Thu May 31, 2007 4:38 am
- Location: India
- Contact:
VERN! Is this working properly? I'm UBER keen to make some cool animation, with like, someone getting shot out of a cannon and then smashing into a whole bunch of stuff. Kind of like a computer game ragdoll physics. Something about ragdoll physics fascinates me.
Can your scripts simulate something like what I'm talking about?
Can your scripts simulate something like what I'm talking about?
`Another great 2D physics game, looks like AS's style really. Sone with BOX2D. Lovely:
http://www.kongregate.com/games/Karolin ... wboarding/
http://www.kongregate.com/games/Karolin ... wboarding/
Unfortunately my scripts can't do ragdoll physics... yet. However it could do it. I just have to continue porting the Actionscript I have or use something like Box2d. I looked into Box2d but it's a bit over my head and not easily ported to lua. The math principles are in there but it's pretty complicated and not a straight forward conversion.
Anything done with Flash like ragdoll physics can be converted to lua and used in AS. It just... uh.... needs to be converted. I mentioned in a previous post the main problem I had converting Actionscript to lua.
Flash is wrong. It is "backwards". The coordinate system used in Flash is the opposite of what is "correct" for nearly every 2D coordinate system including what they teach in math class in college! It's upside down and rotations go in the wrong direction (counterclockwise should be a positive rotation. In Flash it is negative.. or something like that). So the Flash programmers are morons. It's all their fault.
To make these scripts work I have to flip everything upside down before applying it to the bones. It's a bit of a pain in the arse.
-vern
Anything done with Flash like ragdoll physics can be converted to lua and used in AS. It just... uh.... needs to be converted. I mentioned in a previous post the main problem I had converting Actionscript to lua.
Flash is wrong. It is "backwards". The coordinate system used in Flash is the opposite of what is "correct" for nearly every 2D coordinate system including what they teach in math class in college! It's upside down and rotations go in the wrong direction (counterclockwise should be a positive rotation. In Flash it is negative.. or something like that). So the Flash programmers are morons. It's all their fault.

To make these scripts work I have to flip everything upside down before applying it to the bones. It's a bit of a pain in the arse.
-vern