stride3d / stride3d/stride

Add a way to freeze specific rotations and positions in a rigidbody

Open
#467 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-GameStudio area-Physics enhancement
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
image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.