Prevent changing speed at collision
Oook. So, I'm working at a voxel-based destruction system for... Idk )
I'm trying to detect the collision of 2 fast-moving objects and in global, I have this structure of GO:
VoxelBody(Rigidbody.isKinematic = false)
-PhysicalCollider(Collider.isTrigger = false)
-Voxel1(Rigibody.isKinematic = true, Collider.isTrigger = false)
-...
-VoxelN(Rigibody.isKinematic = true, Collider.isTrigger = false)
So trouble in that, what I`m using 4 physic layers (yeah, this is too many) for collision system what I want to realize, but I should detect physical collision between them and NOT change the speed of my non-kinematic rigidbody.
I can't use triggers because they didn`t affect on continuous dynamic collision mode, and didn't give me that info, what I need.
Using pair of Rigibody.isKinematic = true, Collider.isTrigger = false gives me that result what I want, but kinematic rigidbody didn`t support continuous dynamic collision mode.
So, I tried to make a trigger-collider at forward direction of the motion but it affects on non-kinematic rigidbody of parent GO.
How I can keep the physic reaction with static or some other layers, but also keep a speed when my voxel hitting other voxel GO? This is real to do?
Your answer
Follow this Question
Related Questions
Trigger a box collider based on force of an object 1 Answer
How do I detect a collision between two objects using Bolt? 1 Answer
OnCollisionEnter only work if both collider's isTrigger=false 3 Answers
onTriggerEnter returns wrong object's attribute 1 Answer
Why can my character go through objects with collides on them? 1 Answer