- Home /
Forward too slow
Hi, i use Instatiate for create a clone and then I am trying to move that object but it is too slow, i wrote this:
void attack(){
Rigidbody att2;
att2 = Instantiate (att, attCoo.position,attCoo.rotation) as Rigidbody;
att2.AddForce(attCoo.forward*5000);
}
but it is too slow, if i wrote attCoo.forward*10000 has the same speed of attCoo.forward*5, why ? what should i do? Thank you
Answer by Mikael-Gyth · Apr 07, 2014 at 01:10 PM
Looks like the MaxVelocity of the rigidbody prevents it from going any faster. AddForce with 5000 should be VERY fast if you use normal units in your scene. Might be something else but you can look into it. Hope you figure it out.
(Ofcourse the Mass and drag etc. will also affect this, but since it's the same speed with any value I think it might be MaxVelocity that is causing it)
Your answer
Follow this Question
Related Questions
Increase forward speed 2 Answers
Set default forward speed in first person controller 2 Answers
question about score counter 1 Answer
speed diffrence 0 Answers
How can I increase the speed of the player when they run into an object? 1 Answer