4,688 reputation
11534
bio website
location
age
visits member for 4 years, 6 months
seen 10 mins ago

7h
answered Client code handling its own generics when returned by an engine
7h
comment JBullet move object rigidbody in code?
What's the problem you are having with the given code?
7h
revised JBullet move object rigidbody in code?
Improved tags
7h
reviewed Approve JBullet move object rigidbody in code?
1d
comment (Java) Trying to animate an arraylist of coins with a (working) animation class
If draw() is overridden for Coin class, why does it check if (type == ObjectType.COIN)? It's hard to say how your Animator class should interact with Coin as you didn't give any details of the Animator class.
Mar
18
comment In a 2D Java Swing game, how would I rotate my camera or map?
Sure, the basic idea is pixels[y][x] = f(x, y), where f is a transformation to rotated coordinates, e.g. a matrix*vector multiplication. However implementing pixel based manual rendering is going to be slow and/or ugly, as you can't utilize native code or hardware acceleration. In Swing it's usually better to render with higher level primitives such as Images and Shapes.
Mar
17
comment In a 2D Java Swing game, how would I rotate my camera or map?
Depending how you are rendering, you could use AffineTransform to rotate the rendering. See docs.oracle.com/javase/tutorial/2d/advanced/transforming.html
Mar
17
comment In a 2D Java Swing game, how would I rotate my camera or map?
The question is a little hard to read. Could you clarify if you want to rotate just the camera or the map (gravity, camera and entities are rotated)? A picture would help.
Mar
15
comment Flipped model has wrong triangle order
As far as I know the options are either to do it this way or create a copy of the index buffer with reversed vertex order. If you are rendering reflections, you only need to change the winding order one time if you render all reflected models at once.
Mar
15
answered Flipped model has wrong triangle order
Mar
5
comment Is there a quick way to determine if a vector is in a quadrant?
Related: gamedev.stackexchange.com/questions/49290/…
Feb
18
revised Understanding normal mapping
edited title
Feb
13
revised How to implement accurate frame-rate-independent physics?
Changed title which gave the wrong impression of requesting a 100% exact solution.
Feb
13
comment How to implement accurate frame-rate-independent physics?
The linked question and answers explain that using fixed time step is really the way to solve your problems.
Feb
13
comment How to implement accurate frame-rate-independent physics?
possible duplicate of Fixed time step vs Variable time step
Feb
5
comment Physics-based rotation with an array of pixels
For reference, I have created a simple physics simulation with the above method. Video at youtube.com/watch?v=CXEqf5zPSsk. I also believe that the game Gish uses this method successfully.
Feb
1
comment Java JBullet models not colliding
You need to ensure that the sizes you are passing are correct. This applies to both createByteBuffer() and TriangleIndexVertexArray(). At least for indices * 3 doesn't look correct.
Jan
31
revised Java JBullet Mesh collsion problem
Improved grammar and spelling.
Jan
31
answered Java JBullet Mesh collsion problem
Jan
30
comment Java JBullet Mesh collsion problem
What is the problem?