New answers tagged

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 ...
user avatar
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.
user avatar
0 votes

Why is Vector3.ProjectOnPlane() "drifting" further from desired rotation on steep slopes

I think you want something more like this: ...
user avatar
  • 114k
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 ...
user avatar

Top 50 recent answers are included