- Home /
 
               Question by 
               cgarciae · Apr 01, 2014 at 09:19 PM · 
                rigidbodylerpefficiencymovinggameobject  
              
 
              rigidbody.velocity vs lerp efficiency
I have two ways of moving objects:
Method 1
 void Update(){
     rigidbody.velocity = ( targetPosition - transform.position )*speed;
 }
Method 2
 void Update(){
     transform.position = Vector3.lerp( transform.position, targetPosition, Time.delta*speed);
 }
Which one is more efficient? Does rigidbody.velocity use the GPU?
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
Gameobject is climbing out objects with rigidbody 0 Answers
Object Scale Lerp with rigidbody addforce jump duration. 1 Answer
Quaternion.Lerp finishing before "t" parameter hits 1 0 Answers
How can i move an object to a certain position while taking into account colliders ? 1 Answer
Is there a way to smoothly transition between two floats, with it slowing down towards the end 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                