SRL Archive - Java Help and Tutorials

Projectile Motion


Yakman

2008-03-20 19:13:41

i was experimenting with some physics and mechanics, the motion with which projectiles fly through the air
but I'm finished now, here you go.

air resistance and wind could be added, a way to change the initial velocity would be handy too i guess


meh

Harry

2008-03-20 19:15:23

Another release from Yakman! Good job with Java! The best I can do in it is write a Hello World App :(

Bobarkinator

2008-03-20 22:09:54

This could actually be just what I need ;)

kingarabian

2008-03-21 03:58:50

Well this would be perfect if it was compatible with runescape private servers.

It would be used for ranging, i believe.

JuKKa

2008-03-21 06:56:12

From: kingarabian
Well this would be perfect if it was compatible with runescape private servers.

It would be used for ranging, i believe.

naw, because runescape is 3d it uses x, y, z. Z is height in world.
You would have to add that Z variable because yakmans is only 2d :(

good job ;)

mastaraymond

2008-03-21 09:14:06

How do I run this? :rolleyes:

Yakman

2008-03-21 14:56:45

i didnt leave any binary files in that zip file
to compile it, run "ant" on the command line while in that directory
you need Apache Ant for this (google it, its really great)

or if you use windows, you could run this batch file (if you have the JDK installed)
compile.bat

@echo off
javac -d bin com\yakman\projectile\Projectile.java
pause

and this one
run.bat

@echo off
java -cp bin com.yakman.projectile.Projectile
pause

ShowerThoughts

2008-03-21 16:35:46

that is why i love delphi it is a .exe :D i have always have the wrong java…

Wizzup?

2008-03-21 17:04:59

From: hermpie
that is why i love delphi it is a .exe :D i have always have the wrong java…


But java can run in your browser.

ShowerThoughts

2008-03-21 17:05:55

yeah that is true..

pointer

2008-04-21 14:54:28

Big red X