| Data Realms Fan Forums http://45.55.195.193/  | 
|
| How to cast an MORay properly http://45.55.195.193/viewtopic.php?f=73&t=16509  | 
	Page 1 of 1 | 
| Author: | Mind [ Fri Sep 11, 2009 11:16 pm ] | 
| Post subject: | How to cast an MORay properly | 
Well I want to cast an MORay from "self" towards an actor and see if terrain is in the way, and if it is, assign the variable "blah" to false. How would I go at doing that? Thanks ![]() Edit, looked at the wiki, but i dunno if this is right SceneMan:CastMORay(self.Pos, (actor.Pos - self.Pos), 0, 0, 1)  | 
	|
| Author: | Grif [ Fri Sep 11, 2009 11:39 pm ] | 
| Post subject: | Re: How to cast an MORay properly | 
You'd need a castobstacleray followed by a castmoray actually. MORays ignore terrain. And your syntax is all wrong but no biggie it's mostly just filling out the arguments.  | 
	|
| Author: | Geti [ Sat Sep 12, 2009 1:29 am ] | 
| Post subject: | Re: How to cast an MORay properly | 
you can set morays to not ignore terrain actually. you'll need to ignore self.ID aswell.  | 
	|
| Page 1 of 1 | All times are UTC [ DST ] | 
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/  | 
|