support friction CCFLOAT
Re: #
Changelog
Continuous Integration
This pull request:
- [ ] needs automatic test cases check.
Manual trigger with
@cocos-robot run test casesafterward. - [ ] 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.
👍 Package size ⤵ -87 bytes, old: 5445998, new: 5445911
Interface Check Report
This pull request does not change any public interfaces !
Current implementation also supports float though it is strict equal. What's wrong with current implementation?
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.
I don't quite understand the issue. Could you give an example to explain it?
I don't quite understand the issue. Could you give an example to explain it?
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.
1 and 2 should be different.
1 and 2 should be different.
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.