Commit Graph

31 Commits

Author SHA1 Message Date
pandamicro e597e34f4f Remove __instanceId from Node and Component (#2627)
* Add Scheduler.enableForTarget and change to use  _id

* Use _id instead of __instanceId in Texture2D

* Fix ParticleSystem __instanceId usage

* Use _id instead of __instanceId in ActionManager

* Fix usage of Scheduler in InputManager

* Use _id instead of __instanceId in EventManager

* Totally remove ClassManager and __instanceId

* Fix initialization process

* Fix touch & mouse listener off check issue

* Fix id not generated issue

* Fix touch & mouse listener being removed by rejected persist node

* Improve logic
2018-05-04 13:51:21 +08:00
pandamicro 38c61c70b4 Refactor EventTarget: remove hasListenerCache, move dispatch APIs to Node (#2595)
* Improve node property setter performance

* Avoid physics sync trigger events

* Improve callbacksHandler.has performance

* Use flag instead of hasListenerCache in animation state

* Remove hasListenerCache, add event target APIs for dispatch

* Fix some issues

* Fix event target has check

* Expose EventType and LocalDirtyFlag

* Move dispatch related APIs to Node and fix issues

* Refactor event target

* Fix sub listener usage for event target

* Improve code

* Remove callbacksInvoker.has
2018-04-26 21:50:27 +08:00
yinkaile 70b7d8a4a0 set debug draw zIndex to MAX_ZINDEX 2018-03-23 14:56:15 +08:00
pandamicro 77febbfe3d Merge branch 'master' into next 2018-03-13 15:07:21 +08:00
yinkaile f441dba722 remove attachDebugDrawToCamera & detachDebugDrawFromCamera 2018-03-09 16:36:11 +08:00
yinkaile 9e0290ea63 fixed physics debug draw 2018-03-02 16:19:07 +08:00
Jare Guo 6c809263e6 Merge 1.8 2018-02-24 14:58:57 +08:00
pandamicro cc06d40ab6 Use vec3 rot instead of rotationX & Y, apply 3d transform 2018-02-07 15:27:03 +08:00
yinkaile 627880ed42 update physics api comment 2018-02-02 17:58:40 +08:00
yinkaile 1c70cd611a export FIXED_TIME_STEP and MAX_ACCUMULATOR to PhysicsManager 2018-02-02 17:50:08 +08:00
Jare Guo a6fb92ad90 updating license 2018-02-01 09:38:54 +08:00
Jare Guo bd15543093 updating license: Chukong Aipu -> Xiamen Yaji 2018-01-31 17:51:49 +08:00
2youyouo2 fee21cbd15 fixed PhysicsManager api doc 2017-08-08 11:20:53 +08:00
2youyouo2 a3fc730d2f add enabledAccumulator option to physics manager 2017-07-27 16:24:13 +08:00
Wang Nan 0ef3552628 Merge pull request #1623 from 2youyou2/physics_example
update api docs
2017-05-02 16:30:41 +08:00
2youyouo2 2eb3e8a3ca update api docs 2017-05-02 16:28:32 +08:00
Jare Guo f054f504b6 fix typescript api 2017-04-26 17:17:59 +08:00
2youyouo2 2218f7c3e1 fixed unsupported grammar 2017-04-21 16:06:07 +08:00
2youyouo2 586e59bc68 add api doc for physics 2017-04-18 17:32:33 +08:00
2youyouo2 086b4ce4fa improve physics 2017-04-18 17:32:12 +08:00
2youyouo2 31812ff02e CC_TO_PHYSICS_ANGLE => ANGLE_TO_PHYSICS_ANGLE;
PHYSICS_TO_CC_ANGLE => PHYSICS_ANGLE_TO_ANGLE;
2017-04-06 15:18:04 +08:00
2youyouo2 dde3e15f6b add syncRotation 2017-04-01 15:22:46 +08:00
2youyouo2 12d70f7226 fixed jsb memory leak 2017-03-30 16:13:10 +08:00
2youyouo2 7d2b680adc CC_PTM_RATIO to PTM_RATIO 2017-03-30 16:10:38 +08:00
2youyouo2 0109d9b0d7 optimize physics 2017-03-29 17:33:23 +08:00
2youyouo2 5a9d6e67a8 Merge branch 'camera' into physics 2017-03-27 14:21:09 +08:00
2youyouo2 cf536cc315 add camera 2017-03-24 14:01:30 +08:00
2youyouo2 f0a97c4054 use timeStep insteadof magic number 2017-03-20 17:20:35 +08:00
2youyouo2 1b173ea6d2 optimize raycast 2017-03-17 10:04:57 +08:00
2youyouo2 09b3b60695 add fraction to raycast callback 2017-03-16 18:00:31 +08:00
2youyouo2 3acf11a567 support physics 2017-03-08 14:02:45 +08:00