New answers tagged rigidbody
0
votes
How to detect unknown forces on pool re-used rigidbody?
Pooled objects are carrying velocity after disabled. I solved the issue by setting velocity to zero and waitforfixedupdate to handle pyhsic and then disable the object and set it to pool. So when you ...
0
votes
Accepted
Player is able to interact with objects but enemy isn't able to
Turns out I made a beginner mistake. I mistakenly used OnCollisionEnter2D instead of OnTriggerEnter2D.
0
votes
Why is Vector3.ProjectOnPlane() "drifting" further from desired rotation on steep slopes
I think you want something more like this:
...
0
votes
Accepted
Why is Vector3.ProjectOnPlane() "drifting" further from desired rotation on steep slopes
If you wanted to achieve a similar result without using projections, you might want to try just rotating the vector. This should be relatively easy to do knowing the normal of the plane.
I would take ...
Top 50 recent answers are included
Related Tags
rigidbody × 259unity × 222
physics × 91
c# × 61
collision-detection × 49
movement × 28
2d × 26
rotation × 21
collider × 18
rigid-body-dynamics × 16
3d × 8
godot × 8
camera × 6
physics-engine × 6
mathematics × 4
animation × 4
javascript × 4
vector × 4
platformer × 4
gameobject × 4
first-person-shooter × 4
jumping × 4
meshcollider × 4
joints × 4
sprites × 3