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
4 registered members (AndrewAMD, Quad, soulman3, Ayumi), 675 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Moving my Character by Mouse click [Re: mA1k] #343888
10/11/10 11:17
10/11/10 11:17
Joined: Nov 2008
Posts: 216
J
jane Offline
Member
jane  Offline
Member
J

Joined: Nov 2008
Posts: 216
mouse_pos.z = mouse_cursor.z; ?

Ich denke mal, dass der mouse_pos.z einen anderen wert oder NULL haben muss.
die position des Mauszeigers hat nur x und y , diese müssen dann in eine
3d position umgewandelt werden. Aber einen "mouse_cursor.z" gibt es nicht.

Hier mal ein Beispiel aus einem anderen Code:

// First we get the mouse coordinates (2D)
temp.x = mouse_pos.x;
temp.y = mouse_pos.y;
temp.z = 0;

// Set "target" to the same coordinates
vec_set(target,temp);

// Add some depth/dist. from screen, to "target"
target.z = 10000;

// Convert from 2D screen coordinates, to 3D world coordinates
vec_for_screen(temp,camera);
vec_for_screen(target,camera);

// Trace from temp (mouse pos.) to target
c_trace (temp,target,IGNORE_ME|IGNORE_PASSABLE|SCAN_TEXTURE);





Last edited by jane; 10/11/10 12:46.
Re: Moving my Character by Mouse click [Re: jane] #343901
10/11/10 13:51
10/11/10 13:51
Joined: Oct 2010
Posts: 7
M
mA1k Offline OP
Newbie
mA1k  Offline OP
Newbie
M

Joined: Oct 2010
Posts: 7
hmm klingt logisch laugh

ich hab doch aber nen 3D monitor grin grin

Ich werds mal versuchen umzusetzen.
Dank für deinen tip

Page 2 of 2 1 2

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