I've got this in the draw actor of actor Rocket. It works perfectly without the altitude line but with the altitude line it starts shaking and finally goes throw the ground and disappears somewhere down left. Maybe somebody sees what I made wrong? Or is it a bug? The rocket isnt touching the ground. (it's on a launchpad)
- Code: Select all
yvelocity -= kiihtyvyys;
temp = temp_out + temp_in;
mass = 89000 + mass_payload + fuel;
altitude = distance(Rocket.x, Rocket.y, ground.x, ground.y);
if (burning == 1 && fuel >= 0)
{
kiihtyvyys = 356/mass;
CreateActor("smoke", "smoke 01", "no parent", "no path", 7, 20, false);
}
if (burning == 0 && altitude > 0)
{
kiihtyvyys -= 1;
}