Commit Graph

84 Commits

Author SHA1 Message Date
李吉林 9538714d1b add moveTowards & rotateTowards (#14543) 2023-03-13 10:00:39 +08:00
Yiwen b6abb65171 Math tune cpp (#14526)
* fix problem, add missing functions for vec4

* add unit test for math lib, review geom lib, fix comment, clean code

* revert changes on native math lib

* fix typo, cancel deprecates

* fix csm layer frustum usage

* tune document

* restore native changes

* stage math

* correct frustum

* add more unit test

* fix mistakes introduced in the last commit

* add missing changes

* update

* update deprecated information, rename interfaces

* fix operator priority issue

* fix math library related issues
2023-03-12 15:58:07 +08:00
李吉林 e5fe41fbdd remove abs from rhw in transformMat4 (#14483) 2023-03-06 11:03:27 +08:00
李吉林 f4e8b1e03a fix cpp math library (#14458)
* fix cpp math library
2023-03-03 17:33:33 +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
李吉林 bdffc36ed7 fix mat4 getRotation (#14183) 2023-02-09 14:24:20 +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
pandamicro afd22296b4 MIT license update and to new year 2023 (#13927)
* Cpp MIT license update and to date
* TS MIT license update and to date
2022-12-28 11:25:12 +08:00
GengineJS 67a3862cdb revert quaternion fromMat3 (#13829) 2022-12-15 18:21:55 +08:00
minggo 0b10facebc index start from 0 (#13828) 2022-12-15 16:04:33 +08:00
GengineJS 67d7edd8be Fix lookat exception (#13811) 2022-12-15 09:51:40 +08:00
李吉林 ce1cca0a0a revert mat3 set (#13796) 2022-12-13 15:59:31 +08:00
李吉林 85395fbcd6 fix interpolation bug due to Mat3::set (#13750)
* fix interpolation bug due to Mat3::set
2022-12-08 20:26:02 +08:00
江战 046a2b1378 Re-impl CC_ASSERT & CC_ASSERTF (#13588) 2022-12-05 17:12:30 +08:00
徐兵 b2b0d09e1d reflection probe planar reflection for native engine (#13281) 2022-11-14 17:37:11 +08:00
minggo aba9fdb63f Merge branch 'v3.6.1' into merge_v3.6.1 2022-09-02 20:08:18 +08:00
James Chen d1e7907c02 fixed #12176 :Add approxEquals method for Mat3/Mat4/Quaternion/Vec2/Vec3/Vec4. (#12610) 2022-09-01 14:37:18 +08:00
江战 b12553b582 3.6 Node updateTransform apply recursive form (#12398) 2022-08-18 16:35:30 +08:00
minggo e0bfd1d380 Merge branch 'v3.6.0' into merge_v3.6 2022-07-26 12:01:26 +08:00
James Chen eb880e947c Fix the bug of mathutils::approx always returns 1 (#12168) 2022-07-25 12:42:30 +08:00
James Chen aba4cd8fa8 The input argument of Mat4::toRTS should be in the first order and const reference, output arguments should be pointer. (#12172) 2022-07-25 10:22:39 +08:00
江战 e7eeab9340 3.6 remove Mat4::transformVector for Vec3 (#12088)
* use Vec3::transformMat4 to replace Mat4::transformVector
2022-07-20 19:02:41 +08:00
江战 02655fa8fa use cmath std::fabs instead of cstdlib std::abs (#12075) 2022-07-20 08:59:56 +08:00
James Chen 9a7204143f Fix crash of spine test on Android, revert Mat4 and use enoki::load_unaligned in Vec3::transformMat4Neon (#12076) 2022-07-19 19:23:11 +08:00
James Chen 3025bcd012 [v3.6.0] Optimize se::Object::getPrivateData, math::IsEqualF, Vec3::transformMat4 (#12039) 2022-07-18 14:10:16 +08:00
minggo d40b8739bc Merge branch 'v3.6.0' into develop_merge_v3.6 2022-07-18 10:38:14 +08:00
江战 284642a129 copyout last component of vec4 (#11920) 2022-07-12 13:46:02 +08:00
James Chen ba4a98a71c Keep the struct in cc::Rect the same as which in ts (#11864)
Co-authored-by: Yiwen <15225434259xue@gmail.com>
2022-07-06 09:54:24 +08:00
minggo 3e818c45c9 Change macro name (#11528)
* CC_PLATFORM_MAC_IOS -> CC_PLATFORM_IOS

* CC_PLATFORM_MAC_OSX -> CC_PLATFORM_MACOS

* add codes to keep compatible
2022-06-16 14:05:16 +08:00
James Chen 8f8924c3f4 fixed #10929: Hash computation in native engine causes loss of precision, use 32 bits hash for all platforms (#11179)
* fixed #10929: Hash computation in native engine causes loss of precision. Force use 32 bits hash for all platforms.

* More uint64_t -> ccstd:hash_t

* Some uint64_t -> uint32_t in SkeletalAnimationUtils.h/.cpp

* operator() return ccstd::hash_t now and add some comments.

* size_t -> ccstd::hash_t in StringPool.h, Font.h/.cpp
2022-05-25 13:54:57 +08:00
minggo 271cc5cf23 Remove some format rule (#10919)
* remove some rules
* format all codes with new format rule
2022-05-04 13:09:24 +08:00
Cocos Robot bff1fbe17d [ci skip][AUTO]: Automated clang-format update: c7f0f9c103dd416e903eedda42bc1f3f9c5368cb (#10682) (#10717)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-04-11 11:11:30 +08:00
minggo cd48cf7106 Replace CCASSERT with CC_ASSERT (#10682)
* replace CCASSERT with CC_ASSEERT
2022-04-10 16:03:46 +08:00
江战 e02b03ac4c 3.6 add linux ci (#10636)
* 3.6 add linux ci
2022-04-01 18:53:52 +08:00
Cocos Robot df50878b14 [ci skip][AUTO]: Automated clang-format update: 735860a2aa285979c890bad6356b14afeff13db5 (#10560) (#10570)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-29 16:40:20 +08:00
minggo 1a9d49e4c6 replace std::list/std::array with ccstd::list/ccstd::array (#10560)
* replace std::list/std::array with ccstd::list/ccstd::array
2022-03-29 16:36:53 +08:00
Cocos Robot a2df4e4dbd [ci skip][AUTO]: Automated clang-format update: 771de57fc2c1edbaaf3ae94e77f9801b0379cc6c (#10469) (#10472)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-24 13:50:39 +08:00
minggo 7f4cb9e3b1 Remove string (#10469)
* replace std::string with ccstd::string
2022-03-24 11:53:10 +08:00
Cocos Robot 24d84664f8 [ci skip][AUTO]: Automated clang-format update: 3de15842004cba2142ec0fecd82876d8f6a28236 (#10402) (#10424)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-21 16:04:49 +08:00
minggo 34bf14269c unify stl (#10402)
* add ccstd::vector
* replace cc::vector with ccstd::vector 
* replace std::vector with ccstd::vector
* do not include <vector>
2022-03-21 15:55:02 +08:00
yangchao 8ceabc5f3f Fix 3.6 linux compile (#4166)
* std::sinf not work on linux, if not  c++17
2022-01-13 13:55:45 +08:00
minggo 5410a48a58 Implement more logic in native (#4131)
Co-authored-by: bofeng.song <bofeng.song@chukong-inc.com>
Co-authored-by: dumganhar <dumganhar@gmail.com>
Co-authored-by: mmyduckx <308303735@qq.com>
Co-authored-by: Patrice Jiang <397136899@qq.com>
Co-authored-by: 江战 <40414978+PatriceJiang@users.noreply.github.com>
2022-01-07 18:39:40 +08:00
minggo ac7418f1c1 fix conflict 2021-11-30 10:48:30 +08:00
oahcy 5379e6ef35 引擎适配linux平台 (#4035) 2021-11-29 17:17:15 +08:00
Yun Hsiao Wu dbcb157efb misc gfx fixes (#3991)
* better hashing strat

* gfx: unify states hash

* vk: upload texture in multiple chunks if needed

* gfx: states lifecycle management
2021-10-19 14:14:46 +08:00
troublemaker52025 46976eff2d Shadow culling for v3.3.1 (#3810) 2021-09-02 19:34:51 +08:00
minggo aa522396a3 CC_INLINE to inline (#3664) 2021-06-28 16:41:13 +08:00
GengineJS b8f54069c0 [Add] Native scene object update function (#3638) 2021-06-22 16:41:13 +08:00
minggo c98a1251a0 Revert "[add] Native scene object update function (#3602)" (#3634)
This reverts commit 8cc944277f.
2021-06-18 18:12:50 +08:00
GengineJS 8cc944277f [add] Native scene object update function (#3602) 2021-06-18 17:34:06 +08:00