Commit Graph

271 Commits

Author SHA1 Message Date
Zeqiang Li 73a55c71e8 flatten shader location (#13586) 2022-11-30 17:26:11 +08:00
Leslie Leigh (李的序) 6f9b229d6e Implement Vec3.slerp to support spherical interpolation between directional vectors (#12682)
* Implements Vec3.slerp

* Optimize

* Fix
2022-11-23 20:21:28 +08:00
Ling Zhan 3a0df15c31 [feat] in physics settings, default material is set through file (#13464)
* [feat] in physics settings, default material is set through file
2022-11-23 10:23:28 +08:00
Leslie Leigh (李的序) 8be402e236 Fix zero extent animation state playback range (#13456) 2022-11-21 17:11:46 +08:00
hyde zhou 92f2d08f52 [develop] update layout graph loading (#13368) 2022-11-18 13:43:18 +08:00
Leslie Leigh (李的序) 5829f391a3 Add a general used internal algorithm: array partition (#13381)
* Algorithm: array partition
2022-11-16 15:04:14 +08:00
Leslie Leigh (李的序) 0521d1e566 Add a test to test how clip overriding affect the set of animated node (#13375) 2022-11-15 10:42:18 +08:00
Leslie Leigh (李的序) 7e16ec2b79 Fix empty to empty transition (#13359) 2022-11-14 13:57:45 +08:00
PP 6a8180dc97 optimize engine decorator (#13248)
* feat: support field decorator optimization

* publish 4.4.1-alpha.3

* update decorator signature

* update deps

* update third argument

* support culling editor decorators

* update deps

* make optimize decorators configable

* add unit test

* remove optimize-decorators.ts
2022-11-14 10:22:56 +08:00
Leslie Leigh (李的序) 70d10a5645 Animation graph variant and dynamically override clips (#12445)
* Animation graph override clips

* Update

* Fix

* Fix unit test

* support animation graph variant editing (#90)

(cherry picked from commit 273379f3883b8b2d59966249e712b9017d4355ff)

* Anim graph vari template

* tweak

* Tweak

* Mark the overrideClips as experimental

* Name bikeshed

* Tweak

Co-authored-by: 黄森斌 <arsen2010@126.com>
2022-11-11 14:14:19 +08:00
Leslie Leigh (李的序) c23b7bde62 AnimationController: optimize status query methods, add layer count getter (#13323) 2022-11-11 11:00:42 +08:00
minggo 1ce742fbee import js from core instead of using js.js (#13261)
js.js is deprecated
2022-11-07 18:15:06 +08:00
bofeng-song c11b4a0a7b add lodGroup's unit test (#13231)
* add lodGroup's unit test
2022-11-07 11:58:30 +08:00
Leslie Leigh (李的序) 9d3280eeff Add component-wise animation test (#13204)
* Add component-wise animation test

* update

* Specially handle Vec3
2022-11-03 10:45:56 +08:00
Leslie Leigh (李的序) dac7417c1e Add some tests for animation mask in animation graph (#13218)
* Add some tests for animation mask in animation graph

* Tweak
2022-11-03 10:39:51 +08:00
minggo 2e29bce9c3 Adjust serialization (#13201)
* move serialization related file into cocos/serialization
2022-11-01 17:10:12 +08:00
minggo a354281d7e Fix core import issue (#13148)
* import binarySearchEpsilon from core module

* remove unused files

* import easing from core module

* use array instead

* do not export MutableForwardIterator

* do not export binarySearchBy

* print deprecated information in runtime
2022-10-26 15:19:26 +08:00
Leslie Leigh (李的序) 6877ff9438 [3.7] Marionette: implements some state machine operations (#12434)
* Marionette: implements some state machine operations

* Fix

* Tweak

* Rename assign -> copyTo

* Fix
2022-10-24 15:39:43 +08:00
李吉林 a9d4e13f85 Light probe merge (#13093)
* add light probe
2022-10-19 22:34:21 +08:00
santy-wang 91c884362d Merge branch 'v3.6.2' of github.com:cocos-creator/engine into v3.6.1-sync 2022-10-11 20:12:14 +08:00
hyde zhou 5b37954c7f [develop] change custom builder setup procedure (#12990) 2022-10-09 16:14:59 +08:00
minggo 84c25f3a33 declare WrapMode in core/geometry/curve.ts (#12933)
* move WrapMode into core/geometry/curve.ts

* do not exmport WrapModeMask
2022-09-29 09:42:27 +08:00
AFeiYA 1c2a1ba38a Add srgb transform. (#12873) 2022-09-28 14:15:22 +08:00
minggo 95a76235b6 Adjust some files (#12910)
`cocos/core` should not depend other modules, so move some files out of `cocos/core`:
- move some files from `cocos/core` to `cocos/game`
  - director.ts
  - splash-screen.ts
  - game.ts
 - move `cocos/core/root.ts` to `cocos/root.ts` as there is not better module to contain `root.ts`.
 - move `cocos/core/platform/view.ts` to `cocos/ui/view.ts` as screen related logic is moved to `cocos/core/platform/screen.ts`
2022-09-28 09:34:35 +08:00
minggo 0d7c5c8f56 move cocos/core/scene-graph to cocos/scene-graph (#12868)
* move `cocos/core/scene-graph` to `cocos/scene-graph`
* move some files in `cocos/core/components` to `cocos/scene-graph`:
  - component.ts
  - component-event-handler.ts
  - component-event-handler-schema.ts
* move some files in `cocos/core/components` to `cocos/misc`: 
  - missing-script.ts
  - model-renderer.ts
  - renderer.ts
  - camera-component.ts
* move  `cocos/core/components/system.ts` to ``cocos/core/system.ts``
2022-09-26 11:02:22 +08:00
Leslie Leigh (李的序) db3a56fa1e Fix primitive.scale (#12836)
* Fix primitive.scale

* Test

* Tweak
2022-09-21 14:49:41 +08:00
Santy-Wang d6f38f3606 Merge pull request #12824 from cocos/v3.6.1
sync V3.6.1 to v3.6.2
2022-09-20 17:59:33 +08:00
santy-wang f33523227f sync v3.6.1 to develop 2022-09-19 14:00:54 +08:00
Zeqiang Li f5c4dee6db Wgpu 3.6.2 WGPU_CI_ON (#12731) 2022-09-16 10:20:52 +08:00
Leslie Leigh (李的序) fbe3b543c4 Fix adjustTransitionPriority in case of serialization (#12770)
* Fix adjustTransitionPriority in case of serialization

* Fix lint
2022-09-15 10:41:56 +08:00
santy-wang 7bbad4a0a4 Merge branch 'develop' of github.com:cocos-creator/engine into v3.6.1-sync 2022-09-14 11:47:58 +08:00
黄森斌 43a91b1099 [Optimize] tooltip i18n data add extension prefix name (#12741)
* tooltip add extension prefix name

* test case
2022-09-14 10:16:47 +08:00
minggo 2f10f48c15 adjust some folders (#12712)
move cocos/core/asset-manager to cocos/asset/asset-manager
move cocos/core/assets to cocos/asset/assets
merge cocos/core/builtin to cocos/asset/asset-manager
2022-09-07 18:45:54 +08:00
minggo 7922834c0b move cocos/core/animation to cocos/animation (#12674) 2022-09-05 14:57:37 +08:00
minggo c5c7b987ea move cocos/core/gfx to cocos/gfx (#12559)
* move cocos/core/gfx to cocos/gfx
2022-08-26 17:51:46 +08:00
mmyduckx 2ea6e9b148 Remove base node related logics (#11977) 2022-08-23 17:34:36 +08:00
Leslie Leigh (李的序) 427bd20885 Fix animation mask api (#12380) 2022-08-11 11:57:20 +08:00
Santy-Wang f3fbfeb3b1 fix particle-system deserialization (#12220) 2022-07-29 11:54:49 +08:00
Leslie Leigh (李的序) aca3336745 Feat: animation graph - support absolute destination start time (#12162)
* Feat: animation graph - support absolute destination start time

* Update
2022-07-29 11:08:39 +08:00
Leslie Leigh (李的序) 8f929823f4 Optimize embedded player/event evaluation in animation state (#12186)
* Optimize embedded player evaluation in animation state

* update

* Skip wrap info calculation in certain cases in animation state

* Tweak

* Tweak

* Fix  test
2022-07-27 10:56:26 +08:00
Ling Zhan 811ed11bfa default physics material useing internal asset : default-physics-mate… (#11855)
* default physics material useing internal asset : default-physics-material.pmtl. todo: Project Setting's physics material config need to use this asset too. (#12662)

* support set default physics material value from project setting panel. It will effect the packaging processing, and scene loading(todo). this value will not be saved to default-physics-material.pmtl.

* fix physics-system unit test failure: physics system 's constructAndRegister() will directly init default physics material if the default physics material asset is ready

* minor modification of PhysicsSystem::_updateMaterial
2022-07-21 10:37:15 +08:00
Leslie Leigh (李的序) 4d7ca24948 Handle destination start time on empty transitions (#12007) 2022-07-15 17:05:08 +08:00
Santy-Wang ecb8d5f706 Avoid tick multiple times (#11991) 2022-07-14 17:55:50 +08:00
Leslie Leigh (李的序) 87d947c727 Property handle zero duration animation clips(2rd fix) (#11925) 2022-07-11 16:44:35 +08:00
Leslie Leigh (李的序) 22d0fa730b Properly handle zero duration clips (#11879) 2022-07-07 15:25:51 +08:00
zxx43 80697b676c fix unit test material warning (#11874) 2022-07-07 10:10:15 +08:00
黄森斌 67e9aa1f33 V3.6.0 allow multiple custom scripts exist in project with one same className (#11763)
* use getClassById instead of _getClassById

* use getClassId instead of _getClassId

* public cc.js.getClassId api

* allow className already exists, new one will replace old classObject

* create component use cid

* allow className exist when registing

* custom script className allow duplicated

* revert some comments

* preserve api and deprecate _getClassById and _getClassId

* revert some comments

* revert comment

* Update cocos/core/utils/js-typed.ts

Co-authored-by: PP <chinese1236@qq.com>

Co-authored-by: PP <chinese1236@qq.com>
2022-07-05 15:19:56 +08:00
Leslie Leigh (李的序) eaddf1dab7 Handle twice embedded player evaluations occur in difference animation iteration (#11836) 2022-07-05 10:50:32 +08:00
Santy-Wang dab024b47b fix stop pacer failed (#11835) 2022-07-04 17:24:24 +08:00
Leslie Leigh (李的序) e6dfd98840 Optimize morph animation (#11728) 2022-07-04 15:40:45 +08:00