|
Post by archieandrews on Aug 28, 2018 0:36:00 GMT
For some reason if I add the cs script vPickupItem to a gameobject it gets destroyed immediately.
On debugging I discovered the "other" collider is named HeadTrackSensor .. and this triggers soon as game starts and all such items get destroyed.
Why is HeadTrackSensor triggering the items? Am I missing something?
I have a custom 3rd person character but everything appears to be working fine.
BTW I am not using instancing as I do not want to instance
UPDATE: It appears to create HeadTRacKsensor instance on game start and on this the sphere collider radius os 100 which makes it as big as the scene. Its a clue but still not sure how to resolve this
TY
|
|
|
Post by archieandrews on Aug 28, 2018 0:56:03 GMT
OK solved that clue led me to to Head Track "Distance to Detect" I had it set to 100
|
|
|
Post by Invector on Aug 28, 2018 17:00:41 GMT
The Headtrack sensor uses the Headtrack Layer which only collides with a gameobject that is also using the Headtrack layer. If it's colliding with other layers, you may need to check your Physics Matrix or simply go to Invector > Import ProjectSettings.
|
|
|
Post by archieandrews on Aug 30, 2018 23:57:57 GMT
I solved it but think what I had done wrong was the head track object collider was loose. I attached to the pit mouse. I use head look to make the chacracter head look up and down using an XY point the makes finite moved just in front of his head and reduce the sphere collider
|
|