how to change collision detection?
I have 3 objects (first panel):
Player
Trigger
Box collider
I want to get the effect of emptiness in the place where the trigger is located.
(second panel) Here it is shown that the player walks on the surface of the box and inside the sphere.
(third panel) This shows how the player can interact with the surface.
Have ideas how to do this in theory? Simple answers to ignoring the collider are not accepted.
Answer by YooPita · Mar 10, 2018 at 08:29 PM
I figured out to generate a small collider for this purpose, to use it only when the character or other object enters the trigger area.(second panel)
this will happen approximately as follows:
Create a cube that is a bit larger in size than the trigger;
We find the intersection of a small cube and a large;
-//-;
Between the obtained figure and the figure of the trigger, get the difference;
When the player is out of the trigger zone then the collider is not used;
But as soon as the player is in the trigger zone, the collision with the large cube is turned off and turned on with the received trigger.
Probably the only way, I personally do not see other options, but maybe someone smart will advise.
The options for this are still required! Someone, please!
Your answer
Follow this Question
Related Questions
On keydown, moving the player to position of an empty game object with specific tag 0 Answers
Collision is not working with some Collider2d 1 Answer
How can I detect the collision of a gameObject which is at a high speed? 1 Answer
OnTriggerEnter getting called more than once 0 Answers
When two different 3d objects touch each other I want one of them to turn green, how do I do this? 0 Answers