CRE8OR - game maker for anim8or

 


SHOOT RAY


You'll need Cre8or Version 0.12b in order to run this correctly.

Cre8or v0.12b features shoot ray events. I'll only go over the Mouse Ray. With shooting rays we need to select what objects we want to be hit by the ray. So we need to make a list of masks which to shoot the ray against.

Here I added to different masks:

You're allowed 31 different masks.
Here EM_STUFF represents all the objects I want to hit and EM_OTHER represents the objecs I want to exclude.

Here I set the ball object to EM_STUFF:

Here I set the under object to EM_OTHER, because I want to avoid it

Make sure you set all your objects to some kind of mask:

Here I shoot the mouse ray and filter for only EM_STUFF

Now it's time to have events when the ray hits an object:

Then you can decide how it should react. If you want the ray to be a force and physically react with the object add this action in the Mouse Ray event:


Tutorials Page




Copyrights (C) 2007 Keith Tabert
Thanks to R. Steven Glanville for Anim8or, Robin