Skip to content

Always apply SpringArm3D margin #107882

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Kaleb-Reid
Copy link
Contributor

@Kaleb-Reid Kaleb-Reid commented Jun 23, 2025

Previously the margin was only applied if both:

  • No shape is set and the child is not a camera
  • The arm is colliding

This would make the arm immediately jump to the margin position on collision. This pr always factors in the margin when determining the length. The margin also works now in the case that a shape is set or the child is a camera.

Similar to #89797 this is technically a breaking change because the margin didn't do anything before in some cases and the default value is not 0. On the other hand the default margin is very small (0.01).

Example setup: margin == 1, csgbox.size == 0.8*0.8*0.8
2025-06-23_00-24

Old behaviour:

2025-06-23.00-28-47.mp4

New behaviour:

2025-06-23.00-27-49.mp4

Supersedes #89797

Fixes #76220

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SpringArm3D's margin not used for Camera3D
2 participants