Linked Questions

6 votes
2 answers
982 views

Use both AddForceAtPoint and change velocity property? [duplicate]

I'm using Rigidbody2D for some game objects. It seems that when I AddForce() or AddForceAtPoint(), the game objects are mostly ...
Daarwin's user avatar
  • 829
0 votes
1 answer
327 views

How to efficiently move in Unity2D? [duplicate]

If i want to use Physics in Unity2D what should be the most efficient way to move the object without interfering physics? ...
Tushar Sharma's user avatar
9 votes
3 answers
15k views

What is the difference between transform.translate and rigidbody.velocity?

I've been tying to understand what the difference between these two methods of moving a rigid body are. Both seem to move the object at a constant rate and both operate on a RigidBody. So what's the ...
Robert's user avatar
  • 604
3 votes
1 answer
11k views

Proper way to set a RigidBody's maximum velocity

I am trying to gradually accelerate a GameObject with a RigidBody attached until it reaches a maximum velocity, at which point it becomes unable to gain any more velocity. I know I can simply reset ...
flatterino's user avatar
0 votes
1 answer
12k views

What is best for 2D movement: velocity or AddForce?

So I have tried both Velocity and addForce but I'm not getting the result I was expecting which makes me wonder if I fully understand what they do. Move script (test script 1) ...
user225976's user avatar
1 vote
1 answer
4k views

Rigidbody AddForce() skipping/teleporting

I'm surprised that this issue is nowhere to be found on these forums... Well at least when I searched. So, on my setup I have created a cube and applied a Rigidbody to the object with the following C# ...
RandomAnimeGamer's user avatar
1 vote
1 answer
5k views

What are the dangers of setting rigidbody velocity directly for movement and what are the alternatives

I'm playing around with Unity, trying to make a neat 3rd person platformer movement system using rigidbodies so that I may in the future implement things like pushing boxes/physics objects, grappling ...
MrPlow's user avatar
  • 337
2 votes
1 answer
4k views

Problem when trying to use rb.MoveRotation in Unity

OK so I learned that rb.MoveRotation is different from rb.transform.Rotate(). But I am having trouble using it and hoping you can help me. I usually use transform.translate(Vector3.forward) (after ...
Big T Larrity's user avatar
1 vote
2 answers
3k views

Should I change velocity or apply force to implement a jump in Unity?

I have started making a basic platformer game just for fun. Its going to be the style of the original Super Mario Bros game, but with 3d assets. My problem is that I'm using a rigidbody and using ...
Big T Larrity's user avatar
3 votes
1 answer
308 views

Why my player can suddenly fly?

I'm working in a project with Unity 2d where player walks on a small planet. I try to use some code from youtube tutorial to apply gravity to my planet.This code consists of two parts, Attractable and ...
Kon's user avatar
  • 88
0 votes
1 answer
51 views

How to mitigate when applying horizontal force to a rigidbody seems to overpower gravity?

I've started testing movement using the example code in this answer of making a body accelerate to a target velocity ...
MrPlow's user avatar
  • 337