Commit Graph

5 Commits

Author SHA1 Message Date
jiaxin.lai d328964501 revert 'optimize contact data' (#6776) 2020-05-28 19:02:23 +08:00
jiaxin.lai 48ce494926 physics optimization (#6768)
* fix cannon shape center update

* add isA to differentiate the contact data

* sync optimize

* quat typing

* fix body sleeping state

* remove event after destroy

* typing

* fix time reset

* set mass default to 1

* skipBackFaces by default

* tweaks for ammo world step

* continue if sleeping

* checking before wake up

* Annotation specifications

* tweaks

* rename isA to isBodyA

* renaming
2020-05-28 13:39:15 +08:00
jiaxin.lai 44844fdb94 fix get body of rigid body (#6578)
* fix get body of rigid body

* make event optional in trigger&collision callback

* fix apply local force/impulse of ammo
2020-04-20 18:42:54 +08:00
jiaxin.lai 7bcb4cc352 en api docs of physics (#6467)
* add en api docs of  physics module

* docs for physics

* docs

* tweaks

* tweaks

* wording
2020-04-05 16:20:11 +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