hola -como usar- mover con WASD zoom con el ratón o las flechas usar variable atracción para ver los resultados pausa con espacio esto es simplemente un test que estoy haciendo para un juego que tendra que ver con gravedad y objetos ---------------------------------------------------------------------------------------- el resultado ha sido exitoso, con 4 objetos cada uno con distinta masa: 1(100M) 2(20M) 3(30M) 4(35M)y velocidades he conseguido que orbiten, y esa era mi intención. aun que parezca que algunos objetos desaparecen no es asi, lo que ocurre es que se acercan mucho unos a otros y dado que aun no tienen colisión los objetos salen lanzados a una velocidad incrible por la atracción y desaparecen del mapa, bueno se van muy lejos. En parte se deve a que no me he pasado mucho tiempo intentando estabilizar el sistema de manera que nunca choquen y salgan disparados a la velocidad de la luz XD ------------------------------------------------------------------------------------------ tambien he añadido una variable( atraction %), para calcular la atraccion de los objetos, desde (-100 a 200)(osea que se pueden tambien repeler). ------------------------------------------------------------------------------------------ si lo copias porfabor pon creditos a mi. 100% codigo mio ______________________________________________________ v0.3 ·ahora se puede parar la simulacion ·arreglado unos errores ______________________________________________________ v0.2 ·arreglado unos errores con la direccion ______________________________________________________ v0.1 ·compartido
hello -how to use- move with WASD zoom with the mouse or the arrows use variable attraction to see the results pause with space this is simply a test I'm doing for a game that will have to do with gravity and objects -------------------------------------------------- -------------------------------------- the result has been successful, with 4 objects each with different mass: 1 (100M) 2 (20M) 3 (30M) 4 (35M) and speeds I managed to get the into orbit, and that was my intention. even if it seems that some objects disappear, it is not so, what happens is that they are very close to each other and since they do not have a collision the objects are thrown at an incrible speed by the attraction and disappear from the map, well they go very far . In part it is because I didnt spent too much time trying to stabilize the system, so that they never collide and shoot objects at the speed of light XD -------------------------------------------------- ---------------------------------------- I have also added a variable (attraction%), to calculate the attraction of the objects, from (-100 to 200) (so they can also be repelled). -------------------------------------------------- ---------------------------------------- If you copy please add credits to me 100% code of antoni0S ______________________________________________________ v0.3 ·add the ability to stop the game ·fixed some bugs ______________________________________________________ v0.2 ·fixed some directions bugs ______________________________________________________ v0.1 · Shared