Question by
buckango · May 04, 2016 at 03:07 PM ·
rigidbody2drigidbody.velocity
GetComponent().velocity); doesn't work anymore there is no velocity first it was rigidbody2D.velocity = velocity;
first i have rigidbody2D.velocity = velocity; works then stopped working and google new scripting GetComponent().velocity); it worked for a bit then now there's error
it's making me now want to use unity... if i need to keep switching my scripts to new scripts it's like the new xcode back then thankfully swift was made... So now how what's the right script to get velocity.
Comment
None of that makes any sense. Are you trying to get help or just rant a little?
If you want help then please post an example of the problem and try to explain it a little clearer so we can help you.
GetComponent().velocity);
has never worked. I'm guessing you're looking for
GetComponent<Rigidbody2D>().velocity
But without some more context, it's impossible to tell...