I would like to make a sensor object that shrinks when it collides with a wall. Then returns to its original scale when it stops colliding.
Something like an object that’s 5 units long on its Y scale and shrinking all the way down to 1 unit when colliding with a wall. Then returning to its original length when it stops colliding.
I have tried to code this but it keeps on jittering and won’t stop changing scale.