playcanvas / playcanvas/engine

Add 'Contact Offset' to allow for two rigidbodies to be placed next to each other without a bump

Open
#2,337 6 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: physics enhancement
Dominant language
JavaScript
Stars
16.8k
Forks
2k
Avg merge
4h 32m
Merged PRs (30d)
222

Description

Thread: https://forum.playcanvas.com/t/no-seamless-collider/14252/3

Test project: https://playcanvas.com/project/708558/overview/contact-offset-request

Use arrow keys to roll down the path, note that the ball 'bounces'.

Unity has Contact Offset property to get around this: https://docs.unity3d.com/ScriptReference/Collider-contactOffset.html

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 with the linked test project and reproduce the ball's bounce by using the arrow keys, then read the linked forum discussion and Unity Contact Offset reference for the intended behavior. Done means rigidbodies can be placed next to each other without the reported bump or bounce, with the requested Contact Offset behavior available.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
game-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.