Questions tagged [rigidbody]
In game development, a rigidbody is usually referred to anything that is affected by physics.
311 questions
0 votes
2 answers
105 views
When should an object with a collider have a rigidbody?
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 (...
0 votes
1 answer
109 views
OnTriggerEnter called without a Rigidbody
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 ...
0 votes
1 answer
224 views
3D Dark Souls lock-on code: Player moves around target in a spiral, not perfect circle
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 ...
2 votes
1 answer
198 views
Character Keeps Entering and Exiting Trigger on Moving Platform in Unity
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 ...
1 vote
3 answers
1k views
How to add a local gravity/force field in Godot?
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 ...
0 votes
0 answers
87 views
Collision detection with CapsuleCast
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 ...
0 votes
0 answers
60 views
In Unity, how can I check whether two objects are sliding on each other or rolling against one another?
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 ...
2 votes
1 answer
200 views
Rigidbody Simulated vs Static vs none
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 ...