I've taken the code from the Lerpz tutorial to make enemies drop pickups when they die. Currently, the enemy dies and drops the pickups yet I can't seem to get them to trigger the collider.
Each pickup prefab has a sphere collider attached and my first person controller does not seem to trigger the collider when passing over the prefabs.
Now in the tutorial there is no RigidBody used for either the pickup prefabs or the player so I haven't used them either yet I have seen in the forums that RigidBodies might need to be attached? If so, in what way? Do both items (pickup and player) need RigidBodies attached or just one?
I have my pickup script attached to the pickup prefab and have OnTriggerEnter(Collider col) declared. With no RigidBodies this is never triggered yet when I add a RigidBody to one of the objects I get null pointer execeptions in OnTriggerEnter, usually because I'm trying to access the Player state script from the Collider passed into OnTriggerEnter and this turns out to be null.
Any help much appreciated!