Physics Engine Cocos Forum
Encounter Pit:
1 No collisions: A no Collider collision component. b Not added group * Important
2 get mass World coordinates = 0. Got a day.
The 3 collision callback function is not called; a collision component is attached to a node that hangs in a script that implements the following function B to open Enablecontractlistener
4 dynamic adjustment of rebound force: Cannot find the function, the official website can not find. Setrestitution () FIX: Breakpoints See what value and function
5 SetPosition (). A parameter why is the pixel not a meter ptm_ratio. b does not show, no parent node Origin location
6 onbegincontact () call multiple times, indicating that there have been multiple collision, 1 collisions only once
8 Cross-node access Components/ab include references to each other:
Cc.find (' Canvas/playerinfo '). Getcomponen (' Playerinfo '); then you can Xx.func () to invoke the function in the assembly.
Knowledge Points:
1 script file name cannot be duplicated (same name)
2 bounding box for AABB collision components: for collision detection
3 box2d Change Object 3 ways: applyforce/impulse/velocity, all receive a B2VEC2 type vector parameter
4 collision system differs from the physical engine: a former main function collision detection system, the latter powerful and complex
5 Fixture R F: Unit 1, former = 0 inelastic = 1 full elastic collision The latter = 0 no friction = 1 strong friction;
When calculating friction, it is necessary to combine 2 objects collider friction coefficient, and any one f=0 is not friction
-–2018.1.
6 "Jump jump" rigid body deformation scaling: implemented by setscale; corresponding AABB collision box also scaled
9 Animate Component Set callback event: If the function specified in the Implementation animation event is in the script, it will be called/default event
——— –2018.1.30--Skeletal Animation
1 examples in the official demo
2 These 2 different suffix names of skeletal animation differences
– some editors may export formats that are not supported.
3 references
Cocos Creator Dynamic loading dragonbones skeletal animation
Cocoscreator operation Dragonbones The bone to rotate https://www.jianshu.com/p/a8686e5e30e9
Http://developer.egret.com/cn/apidoc/index/name/dragonBones.EventObject
————-2.2 Days
COCOS-JS Engine: Cc:enum Class-wrapmode Enumeration Label/sprite is class/component-parent class not node has _RENDERERUNDERSG component
Retain is to keep the Dictonary/action object in a game loop event after memory does not automatically release
How to upgrade: If you are importing an older version of a project, we recommend that you open the project with the CocosStudio3.10 version first. This allows you to upgrade the studio project to the corresponding version
Spine Dragonbones skeleton. Package Shredding Import/upgrade studio properties with lock/refresh lag TS component