- Home /
How to add to a 3D object's length through code?
What I want to do is make a script where it detects when something enters the trigger collision box, then makes the object a little bit taller each collision enter, but I have no idea how to even start coding this (in JavaScript). Help?
Answer by getyour411 · Mar 21, 2014 at 10:02 PM
OnTriggerEnter(other Collider) {
http://docs.unity3d.com/Documentation/ScriptReference/Transform-localScale.html
}
[1]: OnTriggerEnter(other+Collider)+{++http://docs.unity3d.com/Documentation/ScriptReference/Transform-localScale.html++}
Your answer
Follow this Question
Related Questions
Change scene with trigger collision not working. 1 Answer
Collision Detection in Capsule Collider 0 Answers
Player Falls Through Floor on Trigger 1 Answer
How to make it so enemies only move towards the player when the player is colliding with an object 1 Answer
Why won't the collision work? 3 Answers