Data Realms Fan Forums
http://45.55.195.193/

Door SensorRay offset problem
http://45.55.195.193/viewtopic.php?f=1&t=9117
Page 1 of 1

Author:  Mindbug [ Sat Dec 15, 2007 5:44 pm ]
Post subject:  Door SensorRay offset problem

Ok, i have messed alot with my door here, but i can't seem to get the door to open, when i get near. I think i have misunderstood how the startoffset and sensorray offset works. Is there anybody who could explain how it works? :???: I mean the part about HOW it works, not offsets.

Author:  Grif [ Sun Dec 16, 2007 2:53 am ]
Post subject:  Re: Door SensorRay offset problem

Mmm, that's a nice nonexistent attachment.

Anyways, as far as I understand it, here's how the Sensor Ray offset works.

So, the Open Offset, Closed Offset, and Open Closed Offset all originate from one point. I don't know what it actually IS, but, they are all one point. In this twisted offset, positive X moves you to the right, negative to the left, positive Y moves down, and negative moves up.

Now, Sensor Ray is an especially odd function. It draws a sensor area for the device using a line, which uses the two offsets available.

The offsets for the start and end points of this ray have the same origin as the Open/Closed/OpenClosed offsets.

Meaning that, if your door is, say, (0,0) closed and (0,48) open, a good sensor ray offset to use would be (24,-24) to (-24,-24). This would draw a horizontal line, which extends 24 pixels out from the door, 24 pixels into the air.

24 is used because it's the default tile size in CC.

Author:  Mindbug [ Sun Dec 16, 2007 11:00 am ]
Post subject:  Re: Door SensorRay offset problem

Wohoo! Finally it worked! Time used on rest of mod = A morning. SensorRay offset = a day and a half :x
Thanks Grif. :grin:

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/