1 registered members (AndrewAMD),
1,248
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
camera type
#270338
06/07/09 18:59
06/07/09 18:59
|
Joined: Aug 2008
Posts: 153 Germany,Stuttgart
kwpsp
OP
Member
|
OP
Member
Joined: Aug 2008
Posts: 153
Germany,Stuttgart
|
Hey guys, I've a problem. I've tried to make a camera in this type, but I didn't it. Can you help me? kwpsp
My system: - Core 2 Quad 6600(4x 2,4GhZ) - 2GB Ram - GeForce 7050(:-)) - Windows seven
|
|
|
Re: camera type
[Re: kwpsp]
#270344
06/07/09 19:52
06/07/09 19:52
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
vec_set(camera.x,my.x); camera.x -= 100*cosv(camera.pan); camera.y -= 100*sinv(camera.pan); camera.pan += mouse_force.x*time_step*10;
100 is camera distance, 10 is camera pan speed. my is the entity that camera is fixed to.
untested
Last edited by Quadraxas; 06/07/09 19:52.
3333333333
|
|
|
Re: camera type
[Re: kwpsp]
#270584
06/08/09 21:05
06/08/09 21:05
|
Joined: Aug 2008
Posts: 153 Germany,Stuttgart
kwpsp
OP
Member
|
OP
Member
Joined: Aug 2008
Posts: 153
Germany,Stuttgart
|
It didn't work for me, Can anyone help me? thx kwpsp1 my free_camera code: action free_camera { my.invisible = on; while (1) { my.pan -= 10 * mouse_force.x * time_step; my.tilt += 10 * mouse_force.y * time_step; c_move(my,vector ((key_w-key_s)*30*time_step,(key_a-key_d)*30*time_step,0),nullvector,IGNORE_PASSABLE|GLIDE); vec_set(camera.x, my.x); vec_set(camera.pan,my.pan); wait(1); } }
My system: - Core 2 Quad 6600(4x 2,4GhZ) - 2GB Ram - GeForce 7050(:-)) - Windows seven
|
|
|
Re: camera type
[Re: kwpsp]
#270593
06/08/09 22:21
06/08/09 22:21
|
Joined: Nov 2008
Posts: 354 saeculum II
MPQ
Senior Member
|
Senior Member
Joined: Nov 2008
Posts: 354
saeculum II
|
As Quadarxas wrote before, you need a sin-cos-function (trigonometrical function --> look up AUM34 car AI)
new project in early stage...
Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|