cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

support friction CCFLOAT

Open longchuan opened this issue 1 year ago • 1 comments

Re: #

Changelog


Continuous Integration

This pull request:

  • [ ] needs automatic test cases check.

    Manual trigger with @cocos-robot run test cases afterward.

  • [ ] does not change any runtime related code or build configuration

    If any reviewer thinks the CI checks are needed, please uncheck this option, then close and reopen the issue.


Compatibility Check

This pull request:

  • [ ] changes public API, and have ensured backward compatibility with deprecated features.
  • [ ] affects platform compatibility, e.g. system version, browser version, platform sdk version, platform toolchain, language version, hardware compatibility etc.
  • [ ] affects file structure of the build package or build configuration which requires user project upgrade.
  • [ ] introduces breaking changes, please list all changes, affected features and the scope of violation.

longchuan avatar Oct 22 '24 06:10 longchuan

👍 Package size ⤵ -87 bytes, old: 5445998, new: 5445911

Interface Check Report

This pull request does not change any public interfaces !

github-actions[bot] avatar Oct 22 '24 07:10 github-actions[bot]

Current implementation also supports float though it is strict equal. What's wrong with current implementation?

minggo avatar Nov 01 '24 08:11 minggo

Current implementation also supports float though it is strict equal. What's wrong with current implementation?

js' float support many dots,and bullet's float support many dots too.if the friction was bigger than one,the friction could be max,So,the dots should more than six.Limit the float's dot was meaningless setting.The same problem as position's edit.Editor limits the value,but the scene file has no limits.That is conflictive.

longchuan avatar Nov 01 '24 15:11 longchuan

I don't quite understand the issue. Could you give an example to explain it?

minggo avatar Nov 05 '24 02:11 minggo

I don't quite understand the issue. Could you give an example to explain it?

image look at this,if I set the friction to 3e-15 or 4e-15,there will have diffrent results.But if I set the friction to 1 or 2,the result will not be different.

longchuan avatar Nov 05 '24 07:11 longchuan

1 and 2 should be different.

minggo avatar Nov 06 '24 09:11 minggo

1 and 2 should be different.

image reffer to the requirement, the ball could not output.and blocked by the friction for the output,the rollingFriction should be a large one. one friction has one result,I got the different results by editing friction.

longchuan avatar Nov 06 '24 10:11 longchuan