|
|
Re: Newton breakable entity example
[Re: Emre]
#182587
02/07/08 20:33
02/07/08 20:33
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
Expert
|
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
wow... looks great. would something like this work for breaking asteroids in a space game as well?
Last edited by Germanunkol; 02/07/08 20:33.
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: Newton breakable entity example
[Re: frazzle]
#182592
02/09/08 09:53
02/09/08 09:53
|
Joined: Jul 2007
Posts: 616 Turkey, Izmir
Emre
OP
User
|
OP
User
Joined: Jul 2007
Posts: 616
Turkey, Izmir
|
Old newton dll doesn't work on 7.07. I don't know why. Because my english is not very good. Anyway.If you use 7.07, change this code:(in the dd.wdl)
Replace this code:
function main() { .................... // now load the level level_load(level_str); ifdef USE_NEWTON_GAME_DYNAMICS; wait(1); dll_handle=newtonHandle; NewtonAddMap(level_str,0); endif; fade(-16,vector(0,0,0)); wait(2); // let level load ............................ }
//////WITH THIS CODE:
function newton_load() { ifdef USE_NEWTON_GAME_DYNAMICS; wait(1); dll_handle=newtonHandle; NewtonAddMap(level_str,0); endif;
}
///////////////////////////////////////////////////////////////// // Desc: The main() function is started at game start function main() { .................. // now load the level
level_load(level_str); on_level=newton_load; fade(-16,vector(0,0,0)); wait(2); // let level load ........................ } ------------------------------------- it's working now on 7.07.
|
|
|
Re: Newton breakable entity example
[Re: Quad]
#182594
02/18/08 16:30
02/18/08 16:30
|
Joined: Aug 2002
Posts: 673 Las Cruces, NM
JimFox
User
|
User
Joined: Aug 2002
Posts: 673
Las Cruces, NM
|
I sat down and worked with this a few minutes. With your code change, it worked fine on my system (A7). Without your changes, it crashed. This is really quite impressive. Do you have any tips for making breakable models? I think I see what you did, but my attempt is not coming together easily. Anyway, a very helpful demo. Thank you very much.
Jim
|
|
|
|