PDA

View Full Version : Arrow Pointing at a Location (Like Crazy Taxi)


daniel591992
04-05-2009, 03:26 PM
Hey, I'm trying to make an arrow face a location and stay on camera at all times.

Just like in the game crazy taxi:
http://www.cazatrucos.com/imagenes/crazy-taxi-_4jpg

Any help would be appreciated!
It's part of a project I'm working on for my Java Final!

DrJim
04-06-2009, 08:28 AM
Not the greatest - but the attached seems to work. You might also try both the "turn to face" and the "point at" function and see which you like better. (If you want to get really dizzy :p, you could also add an "orient camera to bunny statement in the loop.)

The overall key (since you can't change an objects axis in Alice) is to find an object who's axis is already oriented to really face the target. Then use this for the object controlled by the camera, make it the vehicle for your "pointer" and that pointer properly with respect to the control object (which you can obviously make not showing, but I kind of liked the bunny on the cone :) ).

daniel591992
04-07-2009, 09:45 AM
Not the greatest - but the attached seems to work. You might also try both the "turn to face" and the "point at" function and see which you like better. (If you want to get really dizzy :p, you could also add an "orient camera to bunny statement in the loop.)

The overall key (since you can't change an objects axis in Alice) is to find an object who's axis is already oriented to really face the target. Then use this for the object controlled by the camera, make it the vehicle for your "pointer" and that pointer properly with respect to the control object (which you can obviously make not showing, but I kind of liked the bunny on the cone :) ).

Worked great. Thanks a lot!

DrJim
04-08-2009, 05:20 PM
Worked great. Thanks a lot!
Glad it did the job :) - I wasn't really sure what you needed.

Also now you've got a start - experiment. This sort of thing is where you really can have fun with Alice. :D

daniel591992
04-08-2009, 09:09 PM
Glad it did the job :) - I wasn't really sure what you needed.

Also now you've got a start - experiment. This sort of thing is where you really can have fun with Alice. :D

You can actually see it in action here:
http://www.alice.org/community/showthread.php?p=9639#post9639

just take a look at the file