|
Heian Noel
Registered User
Join date: 10 May 2007
Posts: 5
|
05-22-2007 07:51
Hi, I have a little(BIG) problem. I read everything about sensors, but I'm not able to use them as I'd want. In particular, I need an object that, when attached to my avatar, looks at in front of me in order to find some particular objects. I can't understand how the "visual cone" works. In fact, there are some point of view where I can find the object I'm looking for, but if I change my perspective just a little, I'm not able to find it any more, even if I'm in front of the object. It seems very strange... Doesn't it?  Can anybody help me finding a solution? TNX
|
|
Milambus Oh
Registered User
Join date: 6 Apr 2007
Posts: 224
|
05-22-2007 10:45
Where are you attaching the object to your avatar?
|
|
Heian Noel
Registered User
Join date: 10 May 2007
Posts: 5
|
05-23-2007 07:15
I attached the object to: 1)head 2)pelvis
Is there something wrong with them?
TNX
|
|
Milambus Oh
Registered User
Join date: 6 Apr 2007
Posts: 224
|
05-23-2007 07:23
I've never made a sensor that was an attachment before, so I can not say for sure.
One thing you may want to check is what direction is considered forward in those cases.
|
|
Eraz Rhode
Registered User
Join date: 12 May 2007
Posts: 14
|
05-23-2007 11:04
You might want to control the orientation of the prim where your script is added. The cone is related to the prim orientation and a small cone with wrong orientation might look at your back, up or even down, depending the direction the prim is orentated.
So your prim should be set to a ZERO_VECTOR when using a small sensoring cone and attached this way correctly orientated to work as expected.
|