Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   Share Worlds (http://www.alice.org/community/forumdisplay.php?f=6)
-   -   Example World? (http://www.alice.org/community/showthread.php?t=4165)

dubastot 03-29-2010 08:11 PM

Example World?
 
I was wondering if anyone had an example world where they have a code that allows an object to follow the mouse perfectly. Any ideas or posts will be great!

jediaction 03-29-2010 08:25 PM

I saw some post of a mouse following system. Its was instant though, you could just switch the speed of the following. Hmm, mabye i can find it...uh, cant find it. Look for "mouse following system". It was called something like that

dubastot 03-29-2010 10:15 PM

Is it for fps games? If so I wouldn't like jedi. Thanks anyways!

jediaction 03-30-2010 06:34 PM

Its not, it for mouse following. An object following the curor...

dubastot 03-30-2010 07:18 PM

I found it in my alice files folder, but it isn't what I need.

[B]Everyone, disregard my question.[/B]

zenteo 03-30-2010 07:55 PM

In order to make an alice object move with your mouse, I would advice you to just use the move object with mouse event. Otherwise it's much more complicated...

Fist you'll have to get the exact ratio between the cursour's position and the rendering-window's bounds. Second you'll have to calculate the plane you're going to move the object on and the distance between the camera and the plane and so on... O_o

Good luck...

jediaction 03-30-2010 08:14 PM

I think he means follow mouse, with "out" click, thats complicated but im getting better at alice and im solving unsolved problems.

dubastot 03-30-2010 09:09 PM

I have already partially designed a code for this, but I will need at least another day to troubleshoot all the issues.

jediaction 04-02-2010 10:03 AM

Wiht Jython scripting?


All times are GMT -5. The time now is 02:28 AM.

Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.