Commit Graph

135 Commits

Author SHA1 Message Date
jiaxin.lai 5530c72706 minor refactor physics framework (#6518)
* refactor framework

* tweaks
2020-04-13 16:25:55 +08:00
Leslie Leigh (李的序) aba3d15953 Reduce @babel/plugin-transform-classses (#6465) 2020-04-01 12:52:39 +08:00
Leslie Leigh (李的序) 744812c4e5 Bump @cocos/build-engine to 2.0.0 (#6444) 2020-03-30 12:22:56 +08:00
Leslie Leigh (李的序) 6a8f15fa52 Solve @babel/core version problem (#6422) 2020-03-26 16:34:33 +08:00
jiaxin.lai aa0eb1bdaf cylinder collider (#6416)
* stash

* stash

* stash

* stash

* fix z direction

* impl cannon cylinder

* stash

* stash

* stash

* fix memory leak

* update @cocos/ammo

* add error map

* update package-lock

* tweaks
2020-03-25 18:35:27 +08:00
Leslie Leigh (李的序) e8cd8ddf4b Bump @cocos/build-engine from 1.0.8 to 1.0.9 to update typescript support (#6397) 2020-03-23 19:08:56 +08:00
Leslie Leigh (李的序) ebf45b15ae Bump eslint; Optimize an error string; Add assert functions (#6398)
* Bump eslint; Optimize an error string; Add assert functions

* Add comment

* Add license
2020-03-23 19:08:16 +08:00
Leslie Leigh (李的序) 74e6eb02a2 Bump @babel/preset-env to 7.9.0; Bump @cocos/build-engine from 1.0.7 to 1.0.8 (#6392) 2020-03-23 15:42:58 +08:00
jiaxin.lai a4af34630f integrate trimesh shape of ammo & cannon (#6232)
* stash

* cannon impl

* ammo mesh collider

* finish ammo mesh collider

* cannon trimesh shape

* tweaks

* tweaks

* tweaks

* update @cocos/ammo &  @cocos/cannon

* fix ci

* naming norm

* use config object

* renaming

* naming norm

* naming norm

* tweaks

* stash

* stash

* stash

* add error map

* export impl

* update package-lock

* export impl of world

* tweaks
2020-03-15 19:41:16 +08:00
Yun Hsiao Wu 45d182308b GPU instancing support (#6300)
* instancing works

* misc opts

* material.setproperty typing

* baked skinning model instancing works

* fix isNormalized

* custom chunk rules injection framework

* profiler instance count

* seperate custom joint textures

* fix joint mapped buffers

* WebGL 1 doesn't allow int attributes

* should rebuild instances after pso change

* set instance attribute

* constants naming
2020-03-12 10:21:19 +08:00
Leslie Leigh (李的序) 284aa38d25 Build time constants (#6256)
* consts

* Bump @cocos/build-engine version

* Fix

* Upload @cocos/build-engine

* Rm scripts/build-engine/.gitignore
2020-03-11 14:05:22 +08:00
Leslie Leigh (李的序) a83db4c8ad Fix npm problem (#6168) 2020-02-13 17:47:03 +08:00
jiaxin.lai 344d1eebde Ammo-capsule (#6159)
* stash

* stash

* stash

* update @cocos/ammo to 1.0.1

* tweaks

* tweaks
2020-02-12 18:58:02 +08:00
Leslie Leigh (李的序) 01b79164cb Remove unnecessary NPM dependencies and gulp logic; bump gulp to fit Node v12+; Use @cocos/build-engine (#6121) 2020-02-12 16:28:09 +08:00
Leslie Leigh (李的序) 679f2fdf9b Bump NPM dependencies. (#6091) 2020-01-14 15:44:57 +08:00
Leslie Leigh (李的序) 7bdbab1deb Fix bug in IIFE build (#6033)
* Fix bug in IIFE build

* Add 'module' to build engine help

* Rename dev build target name
2020-01-06 10:56:44 +08:00
Leslie Leigh (李的序) 0cdea956e0 Build-engine: optimize CommonJS build; add options to show progress of build (#6027) 2020-01-04 11:24:29 +08:00
jiaxin.lai 87c6b9bda4 Ammo-Wrapper (#5954)
* basic physics abstract spec

* spec tweaks

* stash

* cannon refactor

* builtin refactor

* cannon wrapper & framework tweaks

* hiding, wait for 1.0.3

* delete unneed code

* export CANNON

* rebase

* rename stash

* rename I-rigid-body to i-rigid-body

* stash

* stash

* cannon refactor

* cannon wrapper & framework tweaks

* remve unneeded code

* wrap,....hack

* demo impl

* stash

* stash, complete dynamics update

* dynamic update center

* stash, size + center

* tweaks, fix share trigger shape

* tweaks

* stash

* ammo events stash

* tweaks

* stash

* complete ammo events

* tweaks

* stash

* body property, stash

* body , stash...

* tweaks

* tweaks

* tweaks

* ammo tweaks

* stash

* stash

* tweaks

* tweaks

* stash,complete tirgger,body、 ghost etc.

* tweaks

* remove unneeded code

* fix api of angluar velocity

* physic material for single body for now

* ray test stash

* stash

* update ammo version

* impl raycast

* impl group mask

* update ammo version

* update ammo package

* add onDestroy to ammo rigid body

* add protected for temporary

* fix allow sleep

* remove unneed code

* shape tweaks

* stash

* rename spahe to shape

* tweaks

* fix damping

* adapt

* reset state after disable & enable

* export ammo.js

* Revert "cannon wrapper & framework tweaks"

This reverts commit e59ea98c0bd8c23b23e9ee428ddce45d0271f1eb.

* update @cocos/ammo version

* fix applyLocalTorque

* tweaks

* beta version

* fix import i-rigid-body

* delete unused file

* Specification function name
2019-12-25 17:34:12 +08:00
jiaxin.lai f27d80d337 update cannon version to 1.0.5 (#5955) 2019-12-25 12:27:51 +08:00
jiaxin.lai 1d14c0bc93 refactor_tween (#5794) (#5943)
* refactor_tween (#5794)

* copy from master branch cocos2d actions

* tweaks & stash

* tweaks

* stash

* stash

* tweaks

* fix repeatForever init

* fix repeat、repeatForever、reverseTime

* add elastic out in to easing

* add typing

* add adapter & checker;
add api doc;

* tweaks

* fix tween number

* tweaks

* tweaks

* remove tween.js

* rename actions to tween

* export Tween

* allow mutiple remove action

* using new api

* remove deprecated from tween

* add deprecated to tweenUtil

* fix ci test
2019-12-23 16:22:48 +08:00
jiaxin.lai 1a99b886b6 refactor physics framework & wrapper (#5667)
* basic physics abstract spec

* spec tweaks

* stash

* cannon refactor

* builtin refactor

* cannon wrapper & framework tweaks

* cannon wrapper import tweaks

* remve unneeded code

* group mask tweaks

* hiding, wait for 1.0.3

* builtin tweaks

* delete unneed code

* export CANNON

* update @cocos/cannon to 1.0.3

* using hasTigger property

* fix remove cannon body

* rebase

* update cannon version to 1.0.4

* rename stash

* rename I-rigid-body to i-rigid-body
2019-12-13 16:00:22 +08:00
Leslie Leigh (李的序) 3e40d68a1f Add type check to test stage (#5849) 2019-12-12 19:08:42 +08:00
Leslie Leigh (李的序) 66b01c565b Bump gift to 1.2.1 to being rescued from some declaration generate errors (#5882)
* Bump gift to 1.2.1 to being rescued from some declaration generate errors

* Continue bump
2019-12-12 17:19:29 +08:00
pandamicro 3bffb3f48a Merge remote-tracking branch 'origin/3d' into 3d-v1.0.2
# Conflicts:
#	cocos/core/pipeline/render-view.ts
2019-12-12 16:59:17 +08:00
Lelie Leight (李的序) 62a3ed7b2b Scripting 2.0-Part 1 (#5781)
* Scripting 2.0-Part 1

* Bump typescript to 3.7.2

* use event for EditorExtends

* update
2019-12-11 17:39:47 +08:00
pandamicro 6a6dfa43c9 Update engine version (#5867) 2019-12-09 11:31:22 +08:00
ChiaNing 095e115413 rollup build update (#5864) 2019-12-07 17:12:50 +08:00
Yun Hsiao Wu f47cea1422 better playground framework (#5805)
* better playground framework

* remove redundant memops

* minor

* linter

* restore memops
2019-11-29 13:26:34 +08:00
jiaxin.lai f30a4b7b2d update @cocos/cannon to 1.0.2 (#5621)
- fix trigger exit overlap tick may not execute
2019-10-25 16:27:13 +08:00
jiaxin.lai 44e6915279 update cannon.js source to @cocos/cannon (#5573) 2019-10-21 16:37:00 +08:00
jiaxin.lai 3e28aeb310 - update cannon version to cc1.0.2 (#5545)
- emit events after transform sync in cannon physics
2019-10-21 12:00:45 +08:00
Lelie Leight (李的序) 80f8be21f7 Bump package gift (#5544) 2019-10-15 16:07:19 +08:00
Lelie Leight (李的序) a722483d2d fix typing errors (#5538)
* fix typing errors

* disable eslint rule: prefer-readonly
2019-10-14 22:58:15 +08:00
jiaxin.lai 851b52a8f7 - update cannon.js to cc1.0.1 (#5417)
- fix typing
- fix bug of collision event
2019-09-19 17:58:19 +08:00
Lelie Leight (李的序) 435543930f scripting-2 (#5335)
* scripting-2
support build as various module formats
fix

* Update build-engine.ts
2019-09-06 14:49:23 +08:00
jiaxin.lai 4244378d5d remove @types/cannon from package.json (#5279) 2019-08-29 06:12:00 -05:00
Leslie Leigh 397168d122 update gen decls (#5166) 2019-08-16 00:34:25 -05:00
ChiaNing e5b875da28 build-api-default delete (#5107) 2019-08-06 18:39:38 +08:00
ChiaNing fa46670fda typedoc plugin update (#5095) 2019-08-05 19:07:38 +08:00
Yun Hsiao Wu c100ad41e9 fix node dirty bit (#5083) 2019-08-05 14:52:16 +08:00
Leslie Leigh b0df97b04c use ESLint + @typescript-eslint instead of deprecated TSLint (#4976) 2019-07-26 10:12:57 +08:00
pandamicro 1380e46c34 Unittest (#4973)
* unit test for ts

* Fix ts-jest warnings

* Remove puppeteer for now

* fix physics define and jest config for windows

* Replace Node ref with INode ref

* Fix ci issue

* Fix

* tweak

* tweak

* Fix vscode launcher

* now physics framework export all physics component (#28)

* tweaks
2019-07-25 17:15:20 +08:00
Leslie Leigh c17f28201d module division 2 (#4907)
* module division

* update

* update

* small fix

* allow co-existing of physics modules

* update

* upgrade rollup-plugin-node-resolve

* refine build engine cli

* fix

* upgrade rollup plugin commonjs

* fix

* mark physics module as required
2019-07-19 16:12:45 +08:00
Weiliang Wang db12f03059 Revert "module division (#4897)" (#4906)
This reverts commit 78247a0d2f.
2019-07-18 10:45:44 +08:00
Leslie Leigh 78247a0d2f module division (#4897)
* module division

* add animation component

* fetch changes

* dev

* typo
2019-07-18 09:27:02 +08:00
jiaxin.lai fc178a2fdd Add cc tween (#4847)
* add tween.js

* add CCTween
2019-07-10 09:52:38 +08:00
Leslie Leigh 9a958514a0 manually sync 3d-v1.0.0 from 3d (#4817) 2019-07-04 16:06:43 +08:00
Leslie Leigh a3ce76271f update tfig (#4785) 2019-07-02 11:17:56 +08:00
Leslie Leigh 4b802a9273 sync ccclass from creator v2.2.0 (#4719)
* sync ccclass from creator v2.2.0

* ccclass fixes
2019-07-01 14:54:15 +08:00
JoneLau 2b56b8c37b adjust core to avoid babel packing errors (#4731) 2019-06-27 17:56:54 +08:00