2 registered members (AndrewAMD, juanex),
1,247
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: tunnelsystem test
[Re: ello]
#202024
04/12/08 21:39
04/12/08 21:39
|
Joined: Jan 2008
Posts: 1,580
Blade280891
Serious User
|
Serious User
Joined: Jan 2008
Posts: 1,580
|
wow, wierd and cool, could be good, for a futuristic racing game
My Avatar Randomness V2"Someone get me to the doctor, and someone call the nurse And someone buy me roses, and someone burned the church"
|
|
|
Re: tunnelsystem test
[Re: ello]
#202087
04/13/08 08:09
04/13/08 08:09
|
Joined: Sep 2003
Posts: 5,900 Bielefeld, Germany
Pappenheimer
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
|
movement still a bit weird as i need to find a way to be independent from the view direction Independent in what respect?
|
|
|
Re: tunnelsystem test
[Re: Pappenheimer]
#202133
04/13/08 15:47
04/13/08 15:47
|
Joined: Oct 2002
Posts: 8,939 planet.earth
ello
OP
Senior Expert
|
OP
Senior Expert
Joined: Oct 2002
Posts: 8,939
planet.earth
|
independent to the direction. so even if the entity is pointing upwards or downward 90 degree, looking right or left should be possible. now its not:
xs *= 0.9;
xs += (key_w-key_s)*speed*time_step;
ps *= 0.9;
ts *= 0.9;
rs *= 0.9;
ps -= (mouse_force.x)*speed*time_step;
ts += (mouse_force.y)*speed*time_step;
rs += (key_d-key_a)*time_step;
c_rotate(me,vector(ps,ts,rs),GLIDE|IGNORE_YOU|IGNORE_PASSABLE|IGNORE_SPRITES);
c_move(me,vector(xs*time_step,ys*time_step,zs*time_step),nullvector,GLIDE|IGNORE_PASSABLE|IGNORE_SPRITES);
vec_set(camera.x,my.x);
vec_set(camera.pan,my.pan);
this code results in uncontrolled fast rotations if you look up (or down) wards and try to look left or right.
www.earthcontrol.dequoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
|
|
|
Re: tunnelsystem test
[Re: Pappenheimer]
#202197
04/13/08 19:51
04/13/08 19:51
|
Joined: Jul 2002
Posts: 4,436 Germany, Luebeck
Xarthor
Expert
|
Expert
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
|
Try the c_rotate flag USE_AXISR
Very nice scene
[Comment: The rest was removed because of my stupidity]
Last edited by Xarthor; 04/13/08 20:07.
|
|
|
Re: tunnelsystem test
[Re: Xarthor]
#202200
04/13/08 19:54
04/13/08 19:54
|
Joined: Oct 2002
Posts: 8,939 planet.earth
ello
OP
Senior Expert
|
OP
Senior Expert
Joined: Oct 2002
Posts: 8,939
planet.earth
|
not really, but do you have a link?
and thanks for the USE_AXISR, that seems to do the job!
Last edited by ello; 04/13/08 19:56.
|
|
|
|