Gmnewton 2.0
#121
Posted 07 August 2009 - 06:01 PM
#122
Posted 07 August 2009 - 11:33 PM
#123
Posted 15 August 2009 - 01:51 AM
#124
Posted 18 August 2009 - 02:03 PM
-hanson
Update: Making progress! Expect an update including CCD, Convex hulls, and one other surprise this month.
Edited by hanson, 19 August 2009 - 02:15 AM.
#125
Posted 20 August 2009 - 05:17 PM
I hope it's source code or portals xPand one other surprise this month.
Edited by Skarik, 20 August 2009 - 05:17 PM.
#126
Posted 29 August 2009 - 05:06 PM
Download: v1.0
Key new features:
Complete re-write with fixed bugs and added features
Continuous Collision Detection
Auto-updating bodies
Hinge Joints
Simple Fully Commented Example
Released in conjunction with two demos:
Waterslide Demo

[yoyogames] [gmc]
Youtube Video
GMNewton 1.0 physics demonstration
by hanson and Asdam
Domino Simulator 1.0

[yoyogames] [gmc]
Youtube Video
Design your own domino chains with intuitive designer then watch them fall in a realistic manner
by hanson
Enjoy!
-hanson
Edited by hanson, 29 August 2009 - 05:09 PM.
#127
Posted 29 August 2009 - 06:12 PM
I'm guessing you had to rewrite because of something with those weird callbacks, eh?
Edited by Skarik, 29 August 2009 - 06:15 PM.
#128
Posted 30 August 2009 - 03:53 PM
Will play around with this alot for sure.
Real nice demos!
Great work!
#129
Posted 30 August 2009 - 10:15 PM
It's nice & fast... & free.
Question:
How to use this best for a purely 2D game? (lock that z)
Suggestion:
.gmks with scripts covering every function available/examples/documentation...
but definitely at least first .gmk with all the functions, don't make people dig around elsewhere for info.
Very best of luck.
(More examples/docs will probably make this the no.1 physics solution for GM).
#130
Posted 05 September 2009 - 12:49 PM
I'll look into the z-locking. I don't think it's too hard.
do you mean that I should make more examples so that together they cover usage of the whole range of functions? That's a good idea!.gmks with scripts covering every function available/examples/documentation
thanks,
-hanson
#131
Posted 05 September 2009 - 05:36 PM
I mean, I'm probably not even reading this right, but what I see is removing the need to use the same code over and over again, just like one of the C++ projects I'm working on. Just like the real Newton.
Anyhow, there's continuous collision detection, which makes me very happy. I'm off to convert my Stickman project so I can finally have the grenade launcher and the gore working properly.
Edited by Skarik, 05 September 2009 - 05:36 PM.
#132
Posted 06 September 2009 - 02:29 AM
#133
Posted 06 September 2009 - 10:40 PM
@Skarik: I implemented the callbacks in C++, and in the callback I use theGmaker C/c++ lib to automatically update the positions.
Just a note - more accurately sizing might help prevent intersecting bodies. Where one unit is one meter unless you scale your forces, so scale your world accordingly
@gandalf20000: I hope it's easier to use too! Auto-updating bodies should help a tad.
-hanson
#134
Posted 07 September 2009 - 01:42 AM
Well, that also explains it. 30 units is one meter over here. Damn! I guess I shouldn't be applying 500000 Newtons to a grenade that's 3 heavy just to get it to move at a slow speed, huh?Just a note - more accurately sizing might help prevent intersecting bodies. Where one unit is one meter unless you scale your forces, so scale your world accordingly
Edited by Skarik, 07 September 2009 - 01:42 AM.
#135
Posted 07 September 2009 - 07:10 PM
Well, I did run into a problem. I tried to change the d3d to U3D, which was successful, but there's some weird issues with the collision. The blocks bounces around for no apparent reason and I don't know why...
I have some files here, if you want to take a look at this:
http://fileshost.com...hp?id=2EC488BD1
All I did was to remove the d3d stuff, and changed the scripts a bit so they would work better with U3D.
Also, do you have any source-code for the waterslide demo that you can share? I'd love to have a look at it's code.
#136
Posted 07 September 2009 - 08:47 PM
Skarik created an example that demonstrates how to get GMNewton and U3D working together. You can download the gm6 here. Basically what he does is to transform the matrix to the u3d standard before applying it to the 3d object. In the future I hope to add an option to GMNewton to set weather to return d3d or U3D style rotations. This would simplify using this with U3D a lot
Concerning the release of source for the waterslide demo, I will consider that. I would like to talk to my friend who helped make it and see what he thinks.
-hanson
#137
Posted 08 September 2009 - 01:08 AM
This dll is turning out to be pretty slick, fast and efficient - I'm definitely going to use this for my 3D projects (when I get around to learning it ;P)
*thumbsup*
Just one thing, why aren't there any springs just to make life easier? Oh well, I guess I'll have to find the distance manually between two objects and then give it a "springy force feedback".
I'll experiment with making a simple box car
#138
Posted 08 September 2009 - 11:56 AM
By the way did I mention that it would be fantastic if you could put some kind of "z locking" in...
& also consider "locking the z" ...
& "keeping that z locked".
Yep (very subtle)
Keep it up!
#139
Posted 08 September 2009 - 01:59 PM
Bah, how could I forget! Well, that fixed this issue, so now it's working perfectly, thanksThe problem I see here is that GMNewton and d3d apply rotations in the order X*Y*Z, while U3D applies them in the order X*Z*Y.
#140
Posted 09 September 2009 - 03:09 AM
@RamboFox: Thanks! I'd love to see anything you make with this
@Hepolite: I'm glad you got it working!
If you have any more questions, please ask! I'm always(where "always"=="usually") happy to help!
Edit:
If you support GMNewton, please consider copying the following into your sig:
[url=\\\"http://gmc.yoyogames.com/index.php?showtopic=375858&st=0\\\"][img]http://i561.photobucket.com/albums/ss54/samisaham/gmnewton.jpg[/img][/url]Makes: [url="http://\\\"http://gmc.yoyogames.com/index.php?showtopic=375858&st=0\\\""]
[/url]God bless,
-hanson
Edited by hanson, 09 September 2009 - 12:28 PM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users









