Show Posts
|
|
Pages: [1]
|
|
2
|
Game Development / Game Mechanics / Basic question, a beginner !
|
on: 2003-11-10 07:40:41
|
|
Hi,
can somebody tell me when this formula can be used, where can I get more information about it?
dir_x = Math.cos(alpha*(Math.PI/180)); dir_y = Math.sin(alpha*(Math.PI/180)); .... ball.pos_x+=dir_x ... ball.pos_y+=dir_y ...
regards Alvaro
|
|
|
|
|
3
|
Game Development / Game Mechanics / Re: Continuous movement, beginner
|
on: 2003-11-10 07:16:13
|
|
Hi, attr: Jeff
regarding Newton,s first law thank you for your help, I actually knew about this law, but I was interested in the other one, Vectors theory, despite that could you provide me with some code examples?
do you know about some good web sites about game physics but with code examples.
PS: During the weekend i found out that vector can be used, with an angle of ca. 33 degrees, nice isn't it. A book called java micro games talks about it.
|
|
|
|
|
4
|
Game Development / Game Mechanics / Continuous movement, beginner
|
on: 2003-11-07 15:41:05
|
|
Hi, I'm a "traditional programmer" who just has started to do some game programming in Java, but I need som advice, I know there is an algorithm for representing a continuous movement of an object, does anybody know about this algorithm? The only thing I really want to do is some cars running forward at a constant speed, I've heard about an algorithm for this, I don't mean just adding pixels but an algorithm where you use cos(angle) and sin(angle). I would be grateful for any help I can get. best regards Alvaro
|
|
|
|
|
|
Add your game by posting it in the WIP section,
or publish it in Showcase.
The first screenshot will be displayed as a thumbnail.
|
|