How to use reall physics with a rocket?

Hello;

I´m working on a mini project, what i want to do is to make a spatial aeromodelling simulator, so it have to work with real physics…

What i want to know is how do i add a force that propulsate the rocket?And how i can implement i timer for the engine (3 secs and stop…)?

All this further respecting the laws of physics for more realism.
I was thinking in use addForce

    rigidbody.AddForce (0, 10, 0);

Here a capture… :slight_smile:

See you!
Thx!

you could have a delta timer that counts to 4 and a loop that says to addforce up while the timer is lessthan or equal to three

Yeah it will works because at the moment, i applied the add force when you press launch so these " initial" force is huge so it will be nice to add the force gradually…

Any idea on how to implement the timer?

See you
Thx!

Anyone?

Youre in trouble if you cant figure out a simple timer while trying to implement physics… theres also plenty of articles on google for this sort of thing.

float timer=0;
void FixedUpdate() {
 timer += time.deltaTime;  
 if(timer < 4)
   rigidbody.addforce(...
}