phaserjs / phaserjs/phaser

There is no way to revert fixed rotation

Open
#7,125 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
40.3k
Forks
7.2k
PR merge metrics
No merged PRs in 30d

Description

Version

  • Phaser Version: 3.88.2
  • Operating system: Darwin
  • Browser: Electron (Chromium)

Description

Using the matter objects. When we set setFixedRotation() there is no option to take back and allow rotate again.

Also there is no option to set inertia manually either from body create options or setInertia() etc

Those are simple matter methods. But seems like missing

Can you guys help me to disable fixed rotation? I will swith back and forth with that

Image

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

Start by tracing the Matter body APIs named in the issue: setFixedRotation(), inertia, and setInertia(). Check how body creation options and the existing fixed-rotation behavior are exposed. Done means rotation can be disabled and re-enabled, and inertia can be configured through the requested API paths, with relevant behavior verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
game-dev
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.