I would like for my star prefab to be able to faster as time passes by. It starts off slow and falls faster after one minute. How do I do it?
Add a rigidbody. Check use gravity. Watch.
IEnumerator forceCO()
{
float force = 5(whatever the value is)
while(true)
{
yield return new waitforseconds(1);
add force to rigidbody..
increment the force ..
yield return null;
}
You can actually scale the gravity on the rigid body of your star object.
(in update)
flightTime += Time.deltaTime;
rigidbody.gravityScale += flightTime*fTScale;
fTScale can be whatever you want just so you can tweak the rate at which the falling speed increases with time.