Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (fairtrader, AndrewAMD, 3run), 576 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Entity der Maus hinwenden #163107
10/24/07 18:11
10/24/07 18:11
Joined: Jul 2007
Posts: 288
Germany, NRW
Martek Offline OP
Member
Martek  Offline OP
Member

Joined: Jul 2007
Posts: 288
Germany, NRW
Hallo alle zusammen,

ich probiere im Moment, das sich ein Entity immer das Maus zuwendet. Leider habe
ich damit keinen erfolg. Weiß jemand wie das geht, oder hat einer ne Idee
wie das gehen könnte???

Mfg, Pingulord


3D Gamestudio A7 Extra
Re: Entity der Maus hinwenden [Re: Martek] #163108
10/24/07 18:44
10/24/07 18:44
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
habe ich :]

Code:
function rotate_to_mouse()
{
vec_set(temp,vector(mouse_pos.x,mouse_pos.y,5000));
vec_for_screen(temp,camera);//world cood
c_trace(camera.x,temp,ignore_passable);
vec_set(temp,target.x);
vec_sub(temp,my.x);
vec_to_angle(temp,temp);//now points from me to mousepos
my.pan = temp.x;
}



Re: Entity der Maus hinwenden [Re: Scorpion] #163109
10/24/07 19:17
10/24/07 19:17
Joined: Jul 2007
Posts: 288
Germany, NRW
Martek Offline OP
Member
Martek  Offline OP
Member

Joined: Jul 2007
Posts: 288
Germany, NRW
Videlen Dank.
Funktioniert alles super...


3D Gamestudio A7 Extra

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1