- Home /
My Ice Cube is Floating
This is actually nothing to do with ice cubes but that's the best analogy I could think of...lol
Anyway... I'm using this bit of code to make an object get smaller over time-
function Update()
{
transform.localScale -= Vector3(0.001,0.001,0.001); // Reduce object size over time
}
Which works great technically. However after a few moments the object is basically floating in mid-air. How can I get around this problem and keep my object on the ground?
Suggestions please guys ???
Doh... should have know that. Guess that's what happens after 20 hours of being awake.
@bodec thanks a lot. If you want to put your comment in the answer section I'd be happy to vote it up for you.
:)
I have been there myself something so simple escapes the $$anonymous$$d.
Your answer
Follow this Question
Related Questions
Floating origin and scaled, layered cameras - where to put player object? 0 Answers
CG shader tile issue 1 Answer
Object changes shape randomly. 1 Answer
Resizing an object with a particle system attached? 0 Answers
Problems with scale and rotation 2 Answers