Add a way to freeze specific rotations and positions in a rigidbody
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.8k
- Forks
- 1.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 49
Description
Hi, I was trying to port a small test project from Unity Engine to Xenko.
It's a small project where I have a capsule with a rigidbody and I move it from left to right using addforce and I clamp the velocity to limit the speed
in xenko, I have been able to reproduce most of the project without issues, but my main issues comes from the fact that natively, it isn't easy to lock an axis of a rigidbody in xenko, while on unity, it's extremely simple

in Xenko, I have looked at constraints, but none look as simple as simply a FreezeZPosition or FreezeXRotation
it would make the job of a lot of people easier if it was implemented
unless there's an easy way I didn't know about
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named. Start by reviewing the rigidbody constraint APIs and how Unity's freeze-position and freeze-rotation behavior maps to them; done means providing a simple way to freeze selected axes and verifying it against the reported capsule movement scenario.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100