- Home /
 
               Question by 
               DarthHedwig · Mar 27, 2020 at 12:51 AM · 
                rigidbodyinstantiateclones  
              
 
              How to change the velocity of a clone?
I am just starting out with Unity, and am trying to spawn a cube that then has a velocity. When the cube is instantiated, no movement occurs. All help is appreciated.
 using UnityEngine;
 
 public class Movement : MonoBehaviour
 {
     public float speed;
 
     private void Start()
     {
         GetComponent<Rigidbody>().velocity = new Vector3(speed, 0, 0);
     }
 }
               Comment
              
 
               
              Answer by DarthHedwig · Mar 27, 2020 at 01:04 AM
I solved the problem, setting the Rigidbody "Is Kinematic" to false.
Your answer
 
 
             Follow this Question
Related Questions
Instantiated Bullet Force not being applied 0 Answers
Rigidbody.velocity works diffrent on cloned object 0 Answers
Would a spawnpoint with the subcomponent of RigidBody cause instantiate problems? 2 Answers
Removing A Component From An Instantiated Prefab After X More Are Instantiated 1 Answer
Adding Force to an instantiated object when it spawns? 2 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                