- Home /
Question by
MarkS · Mar 01, 2011 at 04:51 PM ·
colliderontriggerenterspeedboost
Increase speed of object that enters OnTriggerEnter
Hey guys, I have a booster script so which boosts the speed of any object which collides with the the booster zone.
void OnTriggerEnter(Collider other)
if (other.gameObject.name == "Coin")
{
Debug.Log("Boost Speed Here");
}
The booster script is attached to the booster zone. There is a rigidbody attached to the object to be boosted as well as a wheel collider. There is a sphere collider attached to the booster zone. Can anyone tell me why the debug message is not printing? Thanks
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613110830im_/https://answers.unity.com/themes/thub/images/avi.jpg)