I’m trying to use the FPS tutorial to create my own first person shooter. After changing the rocket speed from 20 to 50, the rockets started to tunnel. After changing the collision detection from Discrete to Continues Dynamic, the rockets would bounce off of other colliders from time to time. Is there a solution?
If i get that right, your rockets collide with other rockets?
There’s a quite simple solution for that problem:
- assign the rocket to a specific layer
- go to edit ->project settings → Physics and make sure your layer can’t collide with it self (Layer Collision Matrix)
that should help on that issue
You can define up to 32 layers but the first 8 are predefined(0 - 7)
the first user layer is 8, just give it a name in the tag manager and you can assign your rockets to that layer.
good luck
Sorry for the misunderstanding, I meant to say that when the rockets hit terrain and objects, they will from time to time bounce off of each other. I think my problem is showing that I want continues dynamic collision dection in my Java Script script.
Hmm, i think i still don’t get it ![]()
What exactly do you want to happen when a rocket collides with terrain or other objects?
A “normal” rocket should explode i think ![]()
But if the rockets should behave like a rubberball, everything is fine, isn’t it? ![]()
Before I made a fix the admin gave to another poster with the same, the rockets would “tunnel” through colliders, so I changed the collision detection to Continues Dynamic. Now, instead of the rocket exploading from time to time, the rocket bounces off the colliders instead of exploding. I was wondering if there was a way to detect collision using continues dynamic detection.
So to put it all together, I need a way to script continues dynamic detection in Java Script.