Question by
Dizzi800 · Aug 21, 2017 at 10:10 PM ·
not workingtutorialshooter
Space shooter tutorial - bolts not moving?
Hello!
So, I've googled around, searched the forum etc. but I can't find a solution. I haven't gotten as far as firing, but when I put the bolt into the game area, it doesn't move.
code:
public class Mover : MonoBehaviour
{
private Rigidbody rb;
public float speed;
void Start ()
{
rb = GetComponent<Rigidbody>();
rb.velocity = transform.forward * speed;
}
}
I'm really lost as I seem to be doing this exactly as others are. I have my speed set to 20 in the panel on my prefab and everything.
OSX 10.11.6
Unity 2017.1.0f3 Personal
Comment
Answer by Dizzi800 · Aug 22, 2017 at 01:29 AM
FIXED
My Rigidbody was set to 'is kinematic'
It should not have been
Your answer
![](https://koobas.hobune.stream/wayback/20220612133239im_/https://answers.unity.com/themes/thub/images/avi.jpg)