Here is some background information:
I just learn about Unity and game this month, and I am making a VR game about fire, I was trying to make the player get hurt when they touch fire. I was using a cube to pretend it is the player.
I have try some method online about the Collision between the player and fire to let them get hurt, and I found out that only the last method is working to detect player is touching fire.
When my player touch fire, there is only one log each time, it means I can’t track is player is keep in fire or not, so I can’t keep decrease the player’s HP value. Also, the player need to be very close to let the method detect the player is touching the fire.
photoOfTouchingFire
_
Here is my Qusetions:
Is OnTriggerEnter method is the only method I can use? I see the tutorials on the internet are mostly using OnParticleCollision or OnCollisionEnter, should I use those too?
Also, how can I keep track if player is touching fire and decrease player’s health?
Lastly, now the player need to be very close to the fire get response of touching the fire. How can I increase the detection area of player touching fire?