Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Game Mechanics / Re: Random Direction on: 2012-03-07 16:30:03
Repeat to yourself: radians are your friend, degrees are for artist....
Degrees are for openGL ;-)



Thank you so much exactly what I was looking for...well I knew I wanted to find the radians of the angle with sin/cos but could not remember what to do with them. How much slower is this compared to just giving and x and y speed? Is the sin/cos that costly? I know you are not doing it on every move update but still.
If your computer is over 30 years old or if you have millions of objects, it may be costly. Otherwise you will not notice any slowdown.
2  Game Development / Newbie & Debugging Questions / Re: Need help with quanterion (cube rotate) on: 2012-03-05 07:04:44
Try this.
1  
2  
3  
4  
5  
         change = new Quaternion(array[i], array[i+1], array[i+2], 1.0f);
         Quaternion.mul(roll, change, change);
         array[i] = change.x / change.w;
         array[i+1] = change.y / change.w;
         array[i+2] = change.z / change.w;

(http://en.wikipedia.org/wiki/Homogeneous_coordinates)
3  Game Development / Newbie & Debugging Questions / Re: Need help with quanterion (cube rotate) on: 2012-03-04 22:31:54
It looks like you are creating wrong quaternion in roll().
4  Games Center / WIP games, tools & toy projects / Re: Island Forge (Open Beta, indie Java MMORPG) on: 2012-02-28 18:22:10
Can you please change this part of TOS?
Quote
To establish an Account, you must be a resident of the United States and at least 18 years old.
Not that it's going to stop me from playing of course Wink , but you may lose some other players because of this.
5  Game Development / Game Mechanics / Re: Chunks and Collisions on: 2012-02-23 07:51:45
When x is negative, x%320 will be negative too. Because of this, when -320 < x < 320, chunkX = 0, so this chunk is 640 blocks wide. Is it intentional?
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (18 views)
2014-07-30 21:08:39

Riven (27 views)
2014-07-29 18:09:19

Riven (16 views)
2014-07-29 18:08:52

Dwinin (14 views)
2014-07-29 10:59:34

E.R. Fleming (35 views)
2014-07-29 03:07:13

E.R. Fleming (13 views)
2014-07-29 03:06:25

pw (44 views)
2014-07-24 01:59:36

Riven (44 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

List of Learning Resources
by SilverTiger
2014-07-31 18:26:06

List of Learning Resources
by SilverTiger
2014-07-31 13:54:12

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!