Hi all,
I am handling with Dark Dynamix with GREAT results!.
I am really near to finish the conversion of my best Newton project to the new DarkDynamix engine.
I notice too that the code lines are really little than before.
So, here the little thing I can't do for now..
I would to give a force to a body, so I prepare a little code (this code is inside the main loop):
IF not_more_key_work = 0
IF lower$(inkey$()) = "f" then key_pushed = 1
ENDIF
IF key_pushed = 1
DYN ADD FORCE 1, 53000.0, 0, 0
key_pushed = 0
not_more_key_work = 1
ENDIF
Ok, independently from the mass/force needed argument (this 53000.0 force parameter give to object a good push, not strenght and not too little too, considering the mass of the object)
I would that my object,instantly, get a push of force.
So when I push "f" key my object will be pushed with INFINITE ACCELLERATION, from speed =0 to speed 53000, I repeat, instantly.
With this code when I push "f" key I get 1 and only 1 cycle of the code where the FORCE is generated.
So, my object don't get an immediate speed.. my object seems stopped as well..
Okok, now I change the code in this way:
IF lower$(inkey$()) = "f" then key_pushed = 1
IF key_pushed = 1
DYN ADD FORCE 1, 53000.0, 0, 0
ENDIF
I made an infinite cycle number, so nothing change "key_pushed = 1 case" then I get the DYN ADD FORCE command is runned in every cycle of my game.
In this way I see my cube get pushed with a big accelleration and it's moving!.
At this point I understand this command give just an ADDING of force..
So If I always repeat this command I obtain a growing speed of my cube.
IN FINISH MY HELP REQUEST!:
1) How can I set a immediate force of my cube object?
and (or?) (seems not exist some command like "SET_VELOCITY or SET_SPEED")
2)How can I set an immediate SPEED of my cube object?
(sincerely I don't understand well if these 2 questions are in fact the same thing... haha I am melted dudes!..

)
EDIT : I realize now I prepared the topic for DarkDynamix Thread but posted on DBPro.. Please, switch this topic in DarkDynamix thread If is needed.