Skip to main content

Questions tagged [rigidbody]

In game development, a rigidbody is usually referred to anything that is affected by physics.

Filter by
Sorted by
Tagged with
0 votes
2 answers
111 views

I had some questions about Physics / Rigidbody in Unity. I have a 2D sprite with a collider. The 2D sprite is simply a card that I place on a table with the mouse. I use the collider for raycasting (...
Curio's user avatar
  • 261
0 votes
2 answers
121 views

The "Car" in question is a plane. The question is pretty self explanatory. Here's the Car in the Hierarchy: Here's the car in the inspector: And here's the PlayerMovement script: ...
IamaPineapple24's user avatar
0 votes
1 answer
111 views

I use Unity and the player controller in the game is acting strangely. It has a Character Controller but no Rigidbody. I use CharacterController.Move to make him ...
Achie1's user avatar
  • 181
1 vote
0 answers
41 views

I'm currently trying to better understand the concept of the inertia tensor in the context of rigid bodies, and I was hoping someone could help clarify a few points for me. From what I've gathered so ...
Seonix's user avatar
  • 11
0 votes
1 answer
225 views

I'm working on a 3D game in Unity that requires lock-on, or Z, targeting found in games like Dark Souls and Legend of Zelda: Ocarina of Time. The code that I have achieves my intended goals fairly ...
FireStriker's user avatar
0 votes
1 answer
104 views

I'm making a 3D game and I was trying to make movement relative to player rotation for several hours, but I failed. Here's the code, maybe I made a mistake there. Also, player doesn't rotate. ...
free2win's user avatar
2 votes
1 answer
199 views

I'm developing a character controller in Unity and running into a problem with my character repeatedly entering and exiting a trigger collider on a moving platform. The character should stay within ...
phdex's user avatar
  • 61
0 votes
1 answer
59 views

I'm simply trying to disable collisions for a Rigidbody2D: rb.isKinematic = true; rb.detectCollisions = false; as per: https://...
tariq's user avatar
  • 121
1 vote
3 answers
1k views

I am trying to develop something in Godot and I was hoping it would be possible to create some sort of gravity field. I do not mean just the default falling down indefinitely. I mean like a kind of ...
Wouter Vandenputte's user avatar
0 votes
1 answer
71 views

I am trying to make a platformer game in which the player is able to run on the platforms. I have the platforms moving from the right to the left direction and the player is standing on top of the ...
Divyansh undley's user avatar
0 votes
0 answers
89 views

I'm attempting to detect when a gameObject with a Capsule Collider and RigidBody attached it lands on the floor, which is a Mesh with a Mesh Collider attached it to it. Adding a tag to the Floor ...
wrappingduke's user avatar
0 votes
0 answers
94 views

Problem: Why are the wheel colliders not colliding with the floor? Here's a video that shows how the skateboard just falls through the ground: https://imgur.com/a/Vx7QraF I have this kind of hierachy: ...
kyopa's user avatar
  • 143
0 votes
0 answers
61 views

I'm coding a script to make objects emit appropriate noises on contact with other objects, with different sounds for isolated impacts, sliding, and rolling. Impacts work just fine, but for the other ...
Luca Ballanzeddu's user avatar
0 votes
0 answers
84 views

As title stated, when there is too many objects in scene (made when a turret object in my scene shoots too many bullets, they do despawn after a duration so its not completely clogging my scene) my ...
user3602367's user avatar
2 votes
1 answer
204 views

I am confused about the usage of static / not simulated rigidbodies. I get that it is better to disable simulated to temporarily stop a rigidbody rather than deleting and recreating it, especially ...
CheckerT's user avatar
  • 176
0 votes
0 answers
135 views

So I have an empty object called player with the PlayerMovement script and a rigidbody. I have the main camera and player visual as childs of it. The movement works ...
MrV's user avatar
  • 49
0 votes
1 answer
143 views

I can't figure this out. My obstacles have a basic box collider on them and my player has a rigidbody based controller and collsion detection is set to Continous and when obstacle hits him it just ...
Ivan's user avatar
  • 379
1 vote
0 answers
96 views

I'm trying to create a simple 2D scene with two rigidbodies, which are connected by two pin joints. There is one large rigidbody, a green circle, which is slowly rotating at a constant speed (as its <...
F-H's user avatar
  • 111
0 votes
1 answer
78 views

My current code is: ...
Saltii's user avatar
  • 1
0 votes
2 answers
117 views

I'm making a very peculiar outrun clone. I need the player to move forward automatically while being able to change his position on the road in his local X axis. I made infinitely generated road and ...
NationalGeographicProgrammer's user avatar
0 votes
1 answer
163 views

Its a pretty simple question. I have a gun that shoots bullets, to make the game more fun i want the bullets to be used to navigate. For example shooting them below you would make the player jump up. ...
Pow's user avatar
  • 449
0 votes
1 answer
142 views

I have a player moving and jumping by changing its x or y velocity. It worked well until i created a walking and idle animation. Now, the player is animated correctly when idle or walking, but does ...
Usylom's user avatar
  • 31
0 votes
2 answers
157 views

I'm trying to make a 2D Unity platform game for a school project, but I can't seem to get the enemy to move. ...
TheEpikDuck's user avatar
1 vote
1 answer
137 views

I'm somewhat new to Unity, so I'd like to hear some more experienced thoughts on this. I'm using C# if that helps. I'm currently working on an arcade game somewhat similar to "Doodle Jump" ...
soxyo's user avatar
  • 13
6 votes
1 answer
1k views

I'm writing a game where you can pick and throw objects and depending on the force of the impact they break. Using the get_contact_impulse method to calculate the breaking point gives me very ...
Luke B.'s user avatar
  • 1,031
3 votes
1 answer
2k views

I have different game objects with rigid bodies, each having its own mass and drag. However, when these objects fall, they appear to fall at equal speeds. This raises the question of why they do not ...
Muhammad Faizan Khan's user avatar
1 vote
1 answer
646 views

Kinematic bodies have a simple class that makes the player not slide on slopes, but for rigid bodies? I tried using rays and areas, either to lock the player on an axis or to just straight up disable ...
Cei's user avatar
  • 873
1 vote
1 answer
209 views

I'm rounding the position of an object (the blue cube) when the player stops pushing it using ...
Samuel Fyckes's user avatar
1 vote
1 answer
434 views

For context, I have a player that can use a bow or a spear to shoot enemies in a 2D side scroller game. The bow shoots arrows and the spear shoots itself, and they both have rigidbody2Ds attached. ...
Peecee's user avatar
  • 13
0 votes
2 answers
237 views

I am pretty new to Unity... watched quite a few of Brackey's and other YouTube videos along with a lot of research. I have been trying to add an impulse to my player so that after it comes in contact ...
shanksVR's user avatar
0 votes
1 answer
239 views

I have a capulse character Im moving around in my 3d Game, I usually rotate the character using this line of code: ...
Jambo's user avatar
  • 11
0 votes
0 answers
101 views

I have a problem with rigidbody collisions atm. I have a parent object that has a rigidbody and I am spawning objects that become that parent object's child (the children are all spheres). These ...
Christian Blevens's user avatar
0 votes
1 answer
217 views

I have a set up where the ground and the player move with physics and a stationary camera. I want the ground to move faster when the player is getting further away making it look that the player is ...
Barreto's user avatar
  • 123
0 votes
1 answer
502 views

I am struggling with an issue in Unity where I am stopping a rigidbody's motion, but after the motion is stopped the rigidbody still moves slightly. It is causing me major issues as I need the object ...
Cato's user avatar
  • 103
0 votes
0 answers
193 views

I'm recording the velocity of a Rigidbody2D using Animation Curves and I need to reproduce the same "movement" on an instantiated prefab (we really need "stuck like glue" movement ...
Igor's user avatar
  • 219
0 votes
2 answers
168 views

I an using the following code for handling slopes: ...
yukjaly7's user avatar
0 votes
0 answers
312 views

I am having an issue where when I hit space to jump, the jump will only work (as in, launch player straight up into the air) only if I am (1) on flat ground (moving or standing still), (2) on a ...
yunum's user avatar
  • 69
1 vote
2 answers
171 views

I am trying to simulate the behaviour of a rigid body, for example a cube, while it settles on a flat surface. Let's say it lends on an edge or even on a corner, and now it has to settle and remain on ...
Žarko Tomičić's user avatar
2 votes
0 answers
103 views

In vanilla Box2D various types of Joints can be used to connect two rigid bodies together. The LiquidFun extension brings the Particle Module, but I was unable to find a way to connect a particle/...
Simon Zvara's user avatar
0 votes
1 answer
133 views

I have created a simple player controller, which contains the player logic for a movement, aim and shooting bullets from a gun. Everything almost works, except the bullets shoot in random directions, ...
Laurens van Oorschot's user avatar
0 votes
0 answers
596 views

I have a kinematic Rigidbody parented to another non-kinematic moving Rigidbody. Render-wise, the child Rigidbody does not jitter, nor does it inherit any displacement changes from the parent ...
LifGwaethrakindo's user avatar
0 votes
1 answer
177 views

I'm applying forces to a Rigidbody rb. The forces come from points along a spline splineComputer. The code says "find ...
m0a's user avatar
  • 115
0 votes
0 answers
99 views

I am trying to simulate what happens when a cube hits the floor after free fall. I am considering a situation in which cube hits the floor with its edge. There is obviously reaction force from the ...
Žarko Tomičić's user avatar
0 votes
1 answer
63 views

I created a script to climb ledges. It shoots 4 raycasts total: -2 shooting straight forward from player (origins left and right of player) -2 shooting down from forward&above player (origins left ...
m0a's user avatar
  • 115
0 votes
1 answer
95 views

I am trying to create a simple movement script. Currently I don't have any jumping implemented; the movement script should just move rigidbody-based Capsule left, right, forward, backward based on ...
m0a's user avatar
  • 115
0 votes
0 answers
340 views

I have a rigid body with a sphere as a collision mesh which can move and rotate freely. It realistically spins when colliding with other objects, but this is annoying from a gameplay standpoint. Is ...
Mazz1224's user avatar
0 votes
0 answers
74 views

I'm a beginner at game development and I'm building my own physics game engine to grasp the concepts. I wonder if there are different approaches to moving and rotating a rigid body. For example, ...
mcas's user avatar
  • 1
0 votes
1 answer
167 views

When I try to rotate my game object, it keeps moving in same direction. I think there is pretty basic solution but couldn't figure it out. Here is my code: ...
Ivan's user avatar
  • 379
0 votes
1 answer
169 views

I am making a ball-rolling game. I want to implement an interaction where the ball can move on a specific area of a vertical wall like the game that the images show, but I don't know how to implement ...
YOUNG ETHAN's user avatar
0 votes
1 answer
93 views

I have a space craft in a 3d world that moves along the X Z plane. Given that I have 4 thrusters with one at each cardinal direction, and the ship can rotate itself about the y axis. Is it possible to ...
Jeremy's user avatar
  • 15

1
2 3 4 5
7