- Home /
Collision Destroy script without trigger
Hi guys, so for the last few days I've been stumped on something. Long story short, I need a script, preferably Javascript but C# is also good, which A). Doesnt use 'is trigger' B). Doesnt rely on Rigibodies
I've tried myself, but to no avail. Hopefully you can help me.
Thanks
And why don't you want to use trigger or rigidbody? it could help if you would share more details.
You can resize the capsule collider to make it trigger even before it pass trought the object in wich you dont want to st is trigger
Sounds like a classic XY problem. What are you actually trying to do? At the moment, it sounds like "I want to check collision without actually checking collision", which doesn't make much sense at face value.
Are you looking for a basic proximity check? Bounds check? Why do you need to do this? Why can't you use Unity's built-in collision system?
Only way to do this would be to write your own version of the physics engine. Basically calculating the bonds of your object and comparing it to the bonds of the other object. Not an easy task. That's why almost every unity user lets the folks over at NVIDIA take care of it.
It would help if you could explain what game effect you are trying to achieve. Almost every effect needed can be achieved with the right combination of settings on the built in physics engine. I will guarantee that someone on here can figure out a way to do it.
If you've tried something, perhaps you can show us what you've tried and we can help you make it work.
Your answer
Follow this Question
Related Questions
How to only delete one of two collided objects? 1 Answer
Destroying all objects with a certain tag that ray cast if colliding with 0 Answers
Collision between 2 prefabs. 0 Answers
How to destroy bullet on collision! 2 Answers
Collision with a coin 0 Answers