how could i get an angle from a particle with an x and y position to the gravity well that has an x and y position and then is it possible to turn that into a velocity ?
--- Update ---
its fine...
Type: Posts; User: DanielJamesCollier
how could i get an angle from a particle with an x and y position to the gravity well that has an x and y position and then is it possible to turn that into a velocity ?
--- Update ---
its fine...
okay so i have been working on a particle system using the light weight java game library but i now want to add gravity wells. by that i mean a way of attracting all the particles to a central point(...
sorry i just didnt know where to put it but thanks
--- Update ---
i love you man <3 i have been trying to figure it out for ages
hi, okay I am make a mini 2d game engine just for self learning purposes anyway when i try and export it as a runnable jar it exports without any errors and when i click on it to run it, it doesn't...
i am just wondering is there a way of manipulating all corners of shape ? the only way i know you can do this is by using openGL but i keen to know if this is possible in core java. thanks :)
so i was reading the article about primitive data types and i came across litterals. so i understand the uses of the 8 primative types but i dont understand why you would do this below
float pi = ...
how would you recomend i learn, by reading the oracle tutorials ? thanks
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.event.KeyEvent;
import java.awt.image.BufferStrategy;
import...
I normally create a jframe with all the standard methods but I was reading about GUI on the oracle website and it showed an example of creating a jframe in a new instantce of runnable on something...
Sory from now on I'll support people to work it out for them selfs with a few hints
if you mean key words in the java syntax like while,for,if,switch and so on then no it is'nt because it is created by you, if you are using an IDE, all the java key words will be illistrated by bold...
its not that the texture isnt being found, its that the texture is drawing weird
I'm not copying his code.... im just experimenting to see how everthing works as i am LEARNING JAVA.just because i used the word blocks doesnt mean its minecraft and if you looked at the screenshot...
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
import static org.lwjgl.opengl.GL11.*;
public class game {
public final String TITLE =...
darn it, doesnt seem to work either not having much luck :/ thanks thought
thanks for the input :) but this doesnt seem to work :/
import static org.lwjgl.opengl.GL11.*;
import java.util.ArrayList;
import java.util.List;
import org.lwjgl.LWJGLException;
import org.lwjgl.input.Keyboard;
import org.lwjgl.input.Mouse;...