newton and max2D

BlitzMax Forums/BlitzMax Programming/newton and max2D

Haramanai(Posted 2005) [#1]
It's not perfect but it works for the begining.
Copy paste the code below.
Then save it anywhere and save the top right image of this page(Blitz RESEARCH) to the folder you saved the code.
Then just run it.
edit:As I am not seeing any posts i will change the code as I find more compartibility


I think to be 100% compartible we will have to do some changes. I am not sure right now.

Any help and any comments are wellcome.


Haramanai(Posted 2005) [#2]
If anyone knows how to lock the z axi of movement pls post some code.


Leiden(Posted 2005) [#3]
To lock to Z axis couldnt you just pass the same variable to it each pass of the main loop, therefore locking it to the same number?


Haramanai(Posted 2005) [#4]
oops i forgot that. There is a newton function that I used to solve that.(pointed out from a newton user in the newton forum. this function is NewtonWorldForEachBodyDo(NewtonWorld , callbackFunction). And so all the newtonBodies pass from tha callbackFunction and get fixed their z value. I just found out the result and never updated the topic.


tonyg(Posted 2005) [#5]
Hmmm. I tried this.
The program compiled but didn't do anything (i.e. no graphical window opened etc).
I have the newton.mod in pub.mod, libnewton.a in
my blitzmax/lib directory and I'm using the brllog.png image.
Any ideas?


Haramanai(Posted 2005) [#6]
I also have the newton.dll in my system directory


Tibit(Posted 2005) [#7]
I want to see more of what newton can do in 2D!


JoshK(Posted 2006) [#8]
Can't compile due to syntax errors.