Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Mouse coordinates on a randomized matrix

Author
Message
Dmitry K
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Russia
Posted: 29th Jun 2003 16:27 Edited at: 30th Jun 2003 17:46
Up key - move the red sphere towards the mouse coordinates on a matrix
Left mouse button - rotate camera
Right mouse button - move camera

TeePee
21
Years of Service
User Offline
Joined: 18th Apr 2003
Location: Australia
Posted: 30th Jun 2003 08:23
hey dmitros there was an error in that code snippet. at line 93 you had

If cax#90.0 Then cax#=90.0

it should have been

If cax#=90.0 Then cax#=90.0

so this is dmitros's whole code snippet for anyone who wants it



Yarbles
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Toronto
Posted: 30th Jun 2003 11:50
TeePee your version of that line of code is pointless!
I think what is should be is:

if cax#>90.0 then cax#=90.0

TeePee
21
Years of Service
User Offline
Joined: 18th Apr 2003
Location: Australia
Posted: 1st Jul 2003 09:08
true mate guess i wasnt thinking lol

cabbage
20
Years of Service
User Offline
Joined: 18th Jun 2003
Location: United Kingdom
Posted: 2nd Jul 2003 02:58
Wow neat code.

Is there any way this could be altered to get the x,y,z point on a normal matrix at the mouse pointer?

I havent a clue about vectors and I've been scratching my head over a similar problem to this for a while now.

Drum
21
Years of Service
User Offline
Joined: 10th Apr 2003
Location:
Posted: 9th Jul 2003 15:43
Also, how come you cant create objects when using this code?

later
Nick

Drum
21
Years of Service
User Offline
Joined: 10th Apr 2003
Location:
Posted: 9th Jul 2003 15:44
Great code by the way.

Drum
21
Years of Service
User Offline
Joined: 10th Apr 2003
Location:
Posted: 10th Jul 2003 05:00
All sorted out.

haXor
20
Years of Service
User Offline
Joined: 12th May 2003
Location: United States
Posted: 11th Jul 2003 02:59
hey, my names nick too....

Sup Kids
Drum
21
Years of Service
User Offline
Joined: 10th Apr 2003
Location:
Posted: 11th Jul 2003 09:20
hahaha, cool.
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 12th Jul 2003 00:18
Excellent stuff

Windows Menus Plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_103.zip

BLUE GUI - Real Windows User Interface Plugin : http://blue.robert-knight.net

Login to post a reply

Server time is: 2024-04-23 14:57:30
Your offset time is: 2024-04-23 14:57:30