Commit Graph

15 Commits

Author SHA1 Message Date
ChiaNing 4bc2739786 Vmath (#4987)
* Vmath (#4895)

* vmath refactor

* value-type API change

* vmath change update

* conflict fix

* value types change

* translate modify (#4917)

* value types bug fixed (#4940)

* playground update (#4946)

* bug fixed

* bug fixed

* bug fixed

* bug fix

* util modify

* create remove & ccenum rename

* export by cc.math

* Rename value-types to math

* util funtion deprecated warn

* value-types change

* color test fix

* color API change
2019-07-29 11:50:51 +08:00
jiaxin.lai 6bdd48da31 add allowSleep api to rigidbody (#4934) 2019-07-22 11:52:49 +08:00
jiaxin.lai 765ac770f0 add physiscs system interface (#4866) 2019-07-12 10:03:47 +08:00
ChiaNing 9b3858a3e7 API-Doc format modify (#4761) 2019-07-01 09:33:24 +08:00
jiaxin.lai cb2786a789 Physics enegine event refactor (#4675)
* update cannon.js & cannon.js declaration

* plugin cannon.js collsion event & provide contacts(testing for now)

* wrap cannon body impl

* add linear\angular factor to rigidbody component

* add awake sleepy sleeping state query get property

* add apply local force/impulse function to rigidbody component

* add builtin macro protection

* add linear/angular veloctiy function to rigidbody component

* delete some unneed code, enable allowSleep by default

* event refactor, trigger emit by shape, collision emit by rigidBody

* Builtin system also need 'beforeStep'
2019-06-24 18:32:00 +08:00
jiaxin.lai b81f4471f3 Fix cannon add&remove mask method (#4652)
* Fix cannon add&remove mask method

* remove extra condition

* group and mask use bit operation only
2019-06-20 11:39:41 +08:00
jiaxin.lai 28b18223da Adjust group & mask documents, add get/set-CollisionFilter-group/mask interface (#4602) 2019-06-14 10:20:02 +08:00
jiaxin.lai 38c2478b19 Add method to collider (#4561)
* Fix bug of Cannon physics

* Add on、off、once to collider-component

* Modify collision event emit param

* Rename ColliderComponentBase to ColliderComponent and export ColliderComponent;

* Add export-api file for export some physics api to user

* on、off、once Change to private

* Collider manage collision event
2019-06-11 17:32:33 +08:00
jiaxin.lai a1883b6cc6 Fix bug of Cannon physics (#4557) 2019-06-06 18:57:31 +08:00
jiaxin.lai 34c8e6650d Physics builtin (#4547)
* Rename built-in-*** to builtin-***

* Rename r to radius and c to center;

* Add method : transkateAndRotate & setScale to obb & sphere;
Delete unneed class box in box.ts file

* Fix builtin physics Bug of #751 & Modify the physics relative component

* Add macro condition, some method is not declare in builtin

* Rename CC_PHYISCS_*** to CC_PHYSICS_***;

* rename BuiltIn*** to Builtin***

* Typing intersect
2019-06-05 10:27:09 +08:00
jiaxin.lai 0239df8687 Add Physics Api removeMask (#4444) 2019-05-17 16:50:44 +08:00
jiaxin.lai eaa5edb199 Adjusting mask of body,add note for interface (#4402) 2019-05-11 22:53:13 +08:00
jiaxin.lai 45c1c12ab5 Add group&mask to rigidbody (#4399) 2019-05-10 08:44:46 +08:00
jiaxin.lai 693b994857 Collision events are subdivided into ' Enter ', ' Stay ', ' Exit ' three states (#4391) 2019-05-09 17:12:05 +08:00
Leslie Leigh 41c57d1710 typing (#4321) 2019-04-26 18:39:52 +08:00