View unanswered posts | View active topics It is currently Sat Dec 28, 2024 3:33 pm



Reply to topic  [ 3 posts ] 
 Door SensorRay offset problem 
Author Message
User avatar

Joined: Sun Oct 29, 2006 7:17 pm
Posts: 50
Reply with quote
Post 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.


Sat Dec 15, 2007 5:44 pm
Profile WWW
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post 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.


Sun Dec 16, 2007 2:53 am
Profile
User avatar

Joined: Sun Oct 29, 2006 7:17 pm
Posts: 50
Reply with quote
Post 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:


Sun Dec 16, 2007 11:00 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: Google [Bot]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.031s | 16 Queries | GZIP : Off ]