Questions tagged [rigid-bodies]

Rigid body is a solid body which deformation is neglected. The mechanics of a rigid body are completely reducible to the mechanics of material points but it has its own content.

In a rigidBody is a component of a which allows the engine to calculate the behavior of the object and simulate a variety of physical interactions and collisions with other game objects.

Additional information:

Wikipedia article about Rigid Bodies

Unity RigidBody scripting reference

431 questions
4
votes
5 answers

Angular Momentum Transfer equations

Does anyone have any good references for equations which can be implemented relatively easily for how to compute the transfer of angular momentum between two rigid bodies? I've been searching for this sort of thing for a while, and I haven't found…
Paul Sonier
  • 38,903
  • 3
  • 77
  • 117
3
votes
1 answer

Prevent rotational drift

I am making a rigid-body simulation in 3D. And right now I have a precision problem with rotations. Eventually the orientation of a body (free of external forces) converges to be around the axis with smallest moment of inertia. Lowering dt helps but…
beothunder
  • 551
  • 2
  • 14
3
votes
2 answers

Unity - In what cases should I add Time.deltaTime?

I'm new to Unity and I see many times that Time.deltaTime needs to be added. In which cases should I add it? I know this is so that there will be no excess power in the event of a quick refresh of the frame's computer. For example, in the next case,…
Ziv Sion
  • 133
  • 1
  • 3
  • 7
3
votes
2 answers

Unity Rigidbody2d doesn't interact with other Rigidbody2ds

In a 2d isometric tilemap I've given a player object a Rigidbody2d component and an isometric tilemap a Rigidbody2d, a Composite Collider 2d, and a Tilemap collider 2d. I used a the Dynamic and not the Kinematic on my player while i used the Static…
3
votes
1 answer

Godot: how to implement 2d fixed joint?

So, I'm starting with Godot, relying on the physics engine (RigidBody2D-based) for a 2d top-down spaceship game. Part of the idea is that the spacecraft are modular - i.e. parts can be assembled in different ways to create different craft. It's…
3
votes
3 answers

Rigidbody velocity is zero sometimes while the rigidbody is moving

I'm trying to add sound to my pushable object and just have a simple if statement for checking if the pushable object is moving. The concept is quite simple, if the object is moving the sound should play and when it's not moving it shouldn't. The…
Quincy Norbert
  • 431
  • 1
  • 6
  • 18
3
votes
1 answer

How come the Collider falls from the GameObject when a RigidBody is added?

I could really need some help with my GameObjects. I am working on a game in which I want a pick-up Item to create a Physics Force explosion to blow away the enemies. I made a simple Bomb-Object to test this idea. I added a straightforward code,…
3
votes
2 answers

Rigidbodies going inside each other in Unity

How do I solve this problem? Details:As you can see from the game view, the gems are dropping from the right-top of the screen. When they fall down fast and hit each other with the similar rotation, they go into each other.
mesrefoglu
  • 340
  • 2
  • 6
  • 20
3
votes
1 answer

Unity - Using a rigidbody for motorcycle - how do I turn?

I'm new to Unity and rigidbodies, and I thought I'd learn by trying to make a 3D Tron Light-cycle game. I've made my player vehicle using a combination of cylinders, spheres, and rectangles, seen below: I used a rigid body on the elongated sphere,…
zack_falcon
  • 4,186
  • 20
  • 62
  • 108
3
votes
1 answer

Does anyone have examples/tutorials on how to use Bullet Physics/jBullet to do voronoi shattering?

I'm trying to get something working with jBullet physics and voronoi shattering. I can find videos galore of it working, just no code examples. Java or C++ is fine. Just need an example of some code. Can't find a single example of doing this. If…
max
  • 2,346
  • 4
  • 26
  • 34
3
votes
2 answers

Unity3D RigidBody MovePosition Flicker

I currently am working on a game where I am using click to move in Unity. When I click on a spot on the map, I set that mouse's click to the destination and then use the rigidBody on the gameobject to move it using RigidBody.MovePosition(). When I…
3
votes
2 answers

Rigid transformation - Python - speedup

I have following question about faster way to compute rigid transformation (yes, I know I can simply use library but need to code this by myself). I need to compute x' and y' for every x,y in given image. My main bottleneck is dot product for all…
Nefarin
  • 135
  • 1
  • 7
3
votes
2 answers

Unity2D: Rigidbody2D.AddForce won't work when I add a collider

In Unity, I have a player where you press A and D to move left and right, and Space bar to jump (I am also trying to add touch controls). When I add a collider2d to my Player object, the object will not allow me to use Rigidbody2D.AddForce. It just…
bloobchube
  • 39
  • 10
3
votes
1 answer

How to find position in rigid body dynamics simulation using Kinetic Energy

I am trying to implement rigid bodies dynamics for my simulation. I am trying to simulate a tensegrity as in the paper attached. The paper I follow is: Dynamic equations of motion for a 3-bar tensegrity based mobile robot According to this paper…
Apollon1954
  • 1,388
  • 4
  • 16
  • 33
3
votes
2 answers

Fast moving objects 2D game (Unity3d)

I find the official unity training https://www.youtube.com/watch?v=D5MqLcO6A8g and find bug.(look at the score) I spent about 2 days to fix it and failed. I find the "DontGoThroughThings" script and try to rewrite to use in 2D. Failed again) Please…
1
2
3
28 29