[功能][Spine] 补完 spine 4.2 的 PhysicsConstraint wasm 绑定#98
Open
RazgrizHsu wants to merge 3 commits intococos:v4.0.0from
Open
[功能][Spine] 补完 spine 4.2 的 PhysicsConstraint wasm 绑定#98RazgrizHsu wants to merge 3 commits intococos:v4.0.0from
RazgrizHsu wants to merge 3 commits intococos:v4.0.0from
Conversation
- Add SPVectorPhysicsConstraintPtr using - Add DEFINE_ALLOW_RAW_POINTER for PhysicsConstraintData/PhysicsConstraint - Add REGISTER_SPINE_ENUM(Physics) - Add REGISTER_SPINE_VECTOR for physics types - Add PhysicsConstraintData/PhysicsConstraint class bindings - Add Skeleton.getPhysicsConstraints/findPhysicsConstraint - Fix SkeletonData.findPhysicsConstraint pointing to wrong function - Sync spine-core.d.ts type definitions
|
@RazgrizHsu, Please check the result of
Task Details
|
|
@RazgrizHsu, Please check the result of
Task Details
|
Contributor
|
Related PR: cocos/cocos-engine-external#508 |
Contributor
|
@RazgrizHsu please merge my pr to update external version |
update external version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
实际项目中需要通过代码动态控制 spine 物理约束参数(如风力、重力、惯性等),
用于角色头发飘动、衣物摆动等效果的实时调整
具体使用场景例如触摸时给
wind,gravity增加offset然后再复原, 就可以达成与spine物理系统互动
原有绑定不完整,调用 getPhysicsConstraints() 会报 UnboundTypeError,
此 PR 补完缺失的绑定
Changelog
PhysicsConstraintData/PhysicsConstraint
Continuous Integration
This pull request:
Compatibility Check
This pull request: