Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - claydergc

Pages: [1]
1
Projects / Acceleration, Force, Mass and Velocity physics
« on: December 09, 2011, 09:00:17 pm »
Hello,

I've been doing something to simulate some physics issues such as gravity/acceleration, force, mass and velocity, all of this based in one chapter of the book "Game Physics Engine Development".  I created 2 examples to simulate it and you can download it through the following links:

http://www.mediafire.com/?92qlo9ekdbahlf0

http://www.mediafire.com/?nafs5d2hab3k2wy

The first one is the easiest, it only has a sphere that can be shot in 4 different ways (in each shot, acceleration, mass and velocity are changed in the code). The second one is based on JPCT-AE example, but with one extra 3D model (r2d2) that is able to shoot some "bullets" changing the angle in X and Y axis, the velocity is incremented depending on the time that DPAD_CENTER button is pressed. I was thinking in programming some kind of "Gunbound" communicating 2 devices via bluetooth  ;D

I hope this can help  :)

2
Support / Re: gravity
« on: December 09, 2011, 06:45:00 am »
Hello,

I've been doing something to simulate some physics issues such as gravity/acceleration, force, mass and velocity, all of this based in one chapter of the book "Game Physics Engine Development".  I created 2 examples to simulate it and you can download it through the following links:

http://www.mediafire.com/?92qlo9ekdbahlf0

http://www.mediafire.com/?nafs5d2hab3k2wy

The first one is the easiest, it only has a sphere that can be shot in 4 different ways (in each shot, acceleration, mass and velocity are changed in the code). The second one is based on JPCT-AE example, but with one extra 3D model (r2d2) that is able to shoot some "bullets" changing the angle in X and Y axis, the velocity is incremented depending on the time that DPAD_CENTER button is pressed. I was thinking in programming some kind of "Gunbound" communicating 2 devices via bluetooth  ;D

I hope this can help  :)

3
Support / Re: Y axis orientation
« on: December 02, 2011, 03:36:18 pm »
Ok, thanks  :)

4
Support / Y axis orientation
« on: December 02, 2011, 07:25:40 am »
I was playing with HelloWorld-AE example that is included with the library and I noticed that positive Y axis goes down and negative Y axis goes up. Is there some method which can invert this?. I mean, I want positive Y axis goes up and negative Y axis goes down.

Thanks for your answer.

5
Support / Transformations and Animations
« on: November 17, 2011, 06:34:07 pm »
Hello,

I was testing the HelloWorld example that is included with the library. It shows a cube, however I would like to do an animation with that cube. For example, I want the cube to move depending of a math function; however, when I try to translate it, without a loop in the onDrawFrame(GL10 gl) method:

Code: [Select]
cube.translate(new SimpleVector(1, 0, 0));

It moves like an animation through the positive X axis, when I expected just to move one unit(1) to the right. This makes me difficult to move an object depending of a math function. I would like to move it with a Thread, but this doesn't help me.

So, is it possible to move an object without animating it, as it is done in OGL?

Thanks for your answer.

6
Support / Rotate an array of 3ds objects
« on: November 07, 2011, 08:26:51 pm »
Hello,

I'm trying to load a 3ds object. As it is a big a one, it turns into an array of Object3D. When I want to rotate the whole 3D model around the X axis, I do it by using a for() statement, which rotates each element of the array; however, after rotating each element, the complete 3D model is shown disordered, for example: a 3D car is shown with tires on the car's roof, doors where tires should be, etc. I know the rotation is producing this problem, I also tried to rotate it around a differente axis, but I didn't find the correct axis to do it. Is there an easier way to solve my problem?

Thanks for your answer :)

Pages: [1]