Commit Graph

130 Commits

Author SHA1 Message Date
minggo e7f8a9c4ac return correct angle (#17219)
* return correct angle

* fix native implementation

* add test case
2024-06-25 16:22:58 +08:00
minggo 211337a30c fix logic error when removing an array element in loop (#17215)
* fix logic error when removing an array element in loop
2024-06-25 09:31:38 +08:00
minggo 7b2ffc9eda fix logic error of set world rotation/position/scale (#17079)
* fix logic error of set world rotation/position/scale
2024-06-03 09:51:35 +08:00
minggo 4009668e5d fix color multiply error (#17069)
* fix color multiply error
2024-05-31 10:05:58 +08:00
minggo f993d5e763 use Uint8ClampedArray to save memory (#17047)
* use Uint8ClampedArray to save memory
2024-05-28 14:46:22 +08:00
minggo bc6c2d4d6a Color val delete (#17021)
* remove Color._val, use r, g, b, a instead
2024-05-24 10:18:11 +08:00
minggo e7620a32e4 use array pool instead of shared array (#16988)
* use array pool instead of shared array
shared array will have problem if dispatching and event in a event call back function and the event type is propagationStopped
2024-05-21 13:36:19 +08:00
minggo 6a04c0cea0 Some setter improve (#16959)
* only update position when the value is changed
* update rotation as needed
2024-05-10 10:19:32 +08:00
minggo 28784be4b3 only update scale when the value is changed (#16956) 2024-05-08 18:53:03 +08:00
minggo 80294f7f78 Fix pool shrink (#16941)
* update engine version

* fix shrink logic error
2024-05-06 14:23:45 +08:00
James Chen 4d752400cd Fix divide zero issue in mat4.toSRT which causes node._lrot with NaN values. (#16935) 2024-04-29 11:24:23 +08:00
minggo cde48d1750 add Vec2.toVec3() and Vec3.toVec2() (#16906)
* add Vec2.toVec3() and Vec3.toVec2()
2024-04-17 14:00:59 +08:00
minggo 6fb129f562 add shrink threshold (#16840)
* add shrink threshold
2024-03-29 10:54:55 +08:00
Leslie Leigh (李的序) da9c103ad3 Add Vec3.signedAngle (#16013)
* Signed angle

* Update cocos/core/math/vec3.ts

---------

Co-authored-by: Leslie Leigh <leslieleigh@outlook.com>
2023-12-19 11:46:29 +08:00
Leslie Leigh (李的序) 42ff683602 Optimize and add test to Vec2.signedAngle (#16183) 2023-09-05 15:24:38 +08:00
PP 9daf2c663c upgrade nodejs to 18.17.0 (#15899)
* upgrade nodejs to 18.17.0

fix compile-native-ts

fix type

fix eslint

fix node version on native-binding

test native ci

fix eslint

fix jest version

upgrade ts-jest

fix

reduce EXPECTED_CAPACITY

update ccbuidl

Revert "test native ci"

This reverts commit 795c8c68cf7ff7f2561db4414689ad3f6aa5c1f7.

# Conflicts:
#	scripts/native-pack-tool/package-lock.json

* detect node version

# Conflicts:
#	package.json

* use engine-strict option

* Update .nvmrc

* Update pal/input/web/accelerometer-input.ts

* fix conflict

* fix compile native ts

* download external in compile native ts

* fix
2023-08-28 15:52:24 +08:00
Leslie Leigh (李的序) f87d196f8d Add Vec3.generateOrthogonal (#15705) 2023-07-14 10:33:16 +08:00
Leslie Leigh (李的序) f1472e4453 renameObjectProperty() shall not copy non-enumerable symbol properties (#14194) 2023-05-25 10:43:50 +08:00
Santy-Wang d3a9b5a8b8 gradient misc optimization and add some helpful function (#15032)
* gradient misc optimization and add some helpful function

* keep old version and add new interface

* missing .

* mark as engineInternal
2023-05-24 13:59:29 +08:00
Leslie Leigh (李的序) 038f386bec Lint rule: prefer interface style type definition (#15020)
* Lint rule: prefer interface style type definition

* Adapt lint

* Fix lint style
2023-05-18 13:37:54 +08:00
Leslie Leigh (李的序) 06f382db95 Fix @property(PrimitiveType) (#14781) 2023-04-17 15:35:53 +08:00
santy-wang 0a81bf445e Merge branch 'develop' of github.com:cocos-creator/engine into v3.7.2 2023-03-13 16:51:47 +08:00
李吉林 9538714d1b add moveTowards & rotateTowards (#14543) 2023-03-13 10:00:39 +08:00
Leslie Leigh (李的序) 646b88b509 Add internal utility function createInstanceofProxy() (#14352)
* Add internal utility function createInstanceofProxy()
2023-03-02 16:26:07 +08:00
Yiwen 633f738b07 Math tune (#14419)
* fix math lib & add unit test
2023-03-02 14:34:53 +08:00
jk20012001 28e216f3d1 treat color.ToVec4 FromVec4 as linear color (#14433) 2023-03-02 11:05:13 +08:00
李吉林 04e9f5e593 fix ts math library (#14385)
* fix ts math library
2023-02-27 16:59:08 +08:00
pandamicro 89a7f644cf Merge branch 'v3.7.2' into develop
# Conflicts:
#	cocos/core/global-exports.ts
#	cocos/core/math/quat.ts
#	native/cocos/cocos-version.h
#	package.json
2023-02-13 18:00:41 +08:00
Leslie Leigh (李的序) 9ca6ff4915 Add internal utility function renameObjectProperty() (#14142)
* Add internal utility function renameObjectProperty()
2023-02-09 15:15:29 +08:00
李吉林 bdffc36ed7 fix mat4 getRotation (#14183) 2023-02-09 14:24:20 +08:00
minggo 32c08e73f9 merge container-manager.ts and scalable-container.ts (#14107)
* merge `container-manager.ts` and `scalable-container.ts`
* rename `ContainerManager` to `ScalableContainerManager`
* rename `containerManager` to `scalableContainerManager`
2023-02-01 14:12:46 +08:00
PP 3a9d9a547f fix: decorated property without default value (#14016)
* fix: decorated property without default value

* update

* update

* update  test

* Update tests/core/decorator.test.ts

Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>

* Update tests/core/decorator.test.ts

Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>

* Update tests/core/decorator.test.ts

Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>

* Update tests/core/decorator.test.ts

Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>

* close warning

Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>
2023-01-06 18:47:53 +08:00
pandamicro 8eb177b53d Merge remote-tracking branch 'cocos-for-editor/v3.7.0' into develop
# Conflicts:
#	README.md
#	pal/audio/minigame/player-minigame.ts
2022-12-30 19:30:21 +08:00
minggo 0af8b0677b fix wrong logic of murmurhash2_32_gc (#13926) 2022-12-27 18:25:47 +08:00
minggo 4b108dba16 fix unit test error (#13895) 2022-12-23 16:45:18 +08:00
minggo 5f6a2bff97 improve api doc for core/algorithm (#13868) 2022-12-21 16:41:01 +08:00
minggo b81585d53b improve readability (#13818)
* improve readability
2022-12-15 09:42:27 +08:00
bofeng-song 19b63ca762 move lod to 3d module (#13704)
* move lod to 3d module
2022-12-07 14:09:54 +08:00
zxx43 b6feebb035 modify unit test (#13669) 2022-12-06 11:08:35 +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
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
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
minggo 2e29bce9c3 Adjust serialization (#13201)
* move serialization related file into cocos/serialization
2022-11-01 17:10:12 +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
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
santy-wang f33523227f sync v3.6.1 to develop 2022-09-19 14:00:54 +08:00