Hello
I spawn a lot of objects into my scene randomly. They are all prefabs, with a collider, where the isTrigger variable is true. All items, have a itemscript, where the code to look for a trigger event with the player is. My character is a Rigidbody, and it’s collision detection is continuous and it also contains a collider.
The trigger code is the same as the reference, so I can’t see what i’m doing wrong :S
Bonus question:
I would also like to create a magnetic like effect, when my character is near an item. Should I use the Translate function to do that, or is there a better way?
Yes I have tagged my rigidbody character object with “Player”. Why should I add rigidbodies to the items, if they aren’t influenced by physics? I think it would cause huge amounts of unnessasary calculations for the computer…
it was just a suggestion, did you at least try it? if it doesnt help then thats fine, ive found that sometimes adding it fixes the issue of things not hitting eachother, good luck