- Home /
 
               Question by 
               Zypher · Jun 18, 2014 at 03:43 AM · 
                gameobjectspeedfalling  
              
 
              GameObject Fall Speed?
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?
               Comment
              
 
               
              Answer by Kiwasi · Jun 18, 2014 at 03:49 AM
Add a rigidbody. Check use gravity. Watch.
I already have the rigidbody and gravity applied. I meant do I increase the speed with every passing $$anonymous$$ute?
Answer by pacific00 · Jun 18, 2014 at 04:18 AM
 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;
  }
Answer by johnnymoha · Jun 18, 2014 at 04:21 AM
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.
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                