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.

AppGameKit Classic Chat / [SOLVED] Get3DVectorFromScreen snag

Author
Message
puzzler2018
User Banned
Posted: 15th Mar 2019 19:45
Hello Guys,

This is a new one to ask for help.

Im trying to move an object from the bottom left corner to the centre of the screen - I understand that Get3DVector<>fromscreen commands will convert 2D X,Y

so if I set X=-50 and Y=screenheight-50 - this in theory would like the object to be not displayed until i change the X to increase and Y to decrease.

I may be doing something silly

Here is an example code with X and Y set to be off screen to start with



Thanks for any assistance
Tier 1 Developer

The author of this post has marked a post as an answer.

Go to answer

puzzler2018
User Banned
Posted: 15th Mar 2019 20:39
This post has been marked by the post author as the answer.
Forgot 3D world is 0,0 in the centre



Happy days
Tier 1 Developer
nonom
6
Years of Service
User Offline
Joined: 12th Nov 2017
Location: Picking mushrooms
Posted: 18th Mar 2019 16:45
puzzler2018 wrote: "Forgot 3D world is 0,0 in the centre"


It is (x,y,z) basically
puzzler2018
User Banned
Posted: 18th Mar 2019 18:30
Tier 1 Developer

Login to post a reply

Server time is: 2024-04-26 21:45:26
Your offset time is: 2024-04-26 21:45:26