Skip to content

Friction and drag - #340

Merged
ynks merged 10 commits into
devfrom
feature/friction
Oct 13, 2026
Merged

ynks merged 10 commits into
devfrom
feature/friction

Conversation

@ynks

@ynks ynks commented Oct 10, 2026 •

Copy link
Copy Markdown
Member
  • Sliding friction
  • Drag
  • Rolling and spin resistence
  • CapsuleSweep performance
  • Raycast performance
  • Physics layers

@ynks ynks linked an issue Oct 10, 2026 that may be closed by this pull request
@ynks ynks changed the title Drag and friction Friction and drag Oct 10, 2026
@ynks
ynks force-pushed the feature/friction branch from f9aa500 to 596e517 Compare October 11, 2026 08:10
This was linked to issues Oct 11, 2026
@ynks ynks linked an issue Oct 12, 2026 that may be closed by this pull request
@ynks
ynks marked this pull request as ready for review October 12, 2026 10:47
@ynks
ynks requested review from DanteDogDev and dariormt October 12, 2026 10:47
@ynks
ynks enabled auto-merge October 12, 2026 13:16
@ynks

ynks commented Oct 12, 2026

Copy link
Copy Markdown
Member Author

huh i told it to fix it and it pushed it?

@ynks
ynks force-pushed the feature/friction branch from daf8199 to f6c0bbe Compare October 12, 2026 13:19
@ynks
ynks force-pushed the feature/friction branch from f6c0bbe to afc9296 Compare October 12, 2026 13:36
dariormt
dariormt previously approved these changes Oct 12, 2026

@dariormt dariormt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm
Just some questions:
Does the tract stuff compile on release?, just in case you have not checked, (I'm not home)
Also how does exactly wind work, do you do a raycast to check if its inside before aplaying the force?

Comment thread engine/assets/lua/physics.d.lua
@ynks
ynks disabled auto-merge October 12, 2026 18:33
@ynks

ynks commented Oct 12, 2026

Copy link
Copy Markdown
Member Author

Lgtm
Just some questions:
Does the tract stuff compile on release?, just in case you have not checked, (I'm not home)

Now that you say I've only tried on Debug and RelWithDebInfo, I'll try if it gets disabled on release but it should as it follows the engine logic

Also how does exactly wind work, do you do a raycast to check if its inside before aplaying the force?

It adds atmospheric drag on that direction

but keeo it on release with deb info
@ynks

ynks commented Oct 13, 2026

Copy link
Copy Markdown
Member Author

this is done @dariormt you can review it again

@ynks
ynks requested a review from dariormt October 13, 2026 08:33
@ynks
ynks merged commit f468f05 into dev Oct 13, 2026
9 checks passed
@ynks
ynks deleted the feature/friction branch October 13, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Physics layers CapsuleSweep performance Raycast performance Friction and drag

2 participants