Commit Graph

16 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 57d06f678c Fix bug of set isTrigger (#4858) 2019-07-11 11:24:18 +08:00
pandamicro ec9e639293 Refactor valuetypes (#4798)
* Some value-types change

* value-type change

* Refactor valuetypes
2019-07-03 09:31:43 +08:00
ChiaNing 9b3858a3e7 API-Doc format modify (#4761) 2019-07-01 09:33:24 +08:00
jiaxin.lai 2aa125974d Fix collider sync bug, add shape to body before enable body (#4753)
* add shape to body before enable body, when enable body will sync the body

* sync node after add shape to body
2019-06-29 12:16:48 +08:00
jiaxin.lai 29b61b6b0a update physics api doc (#4735) 2019-06-27 17:55:47 +08:00
jiaxin.lai 7c7a0536a6 fix bug of collider set size & radius when using builtin (#4726) 2019-06-27 11:31:21 +08:00
jiaxin.lai e3bd03f037 api module declare for physics (#4687)
* api module declare for physics

* modify physics api

* update physics profile
2019-06-26 10:42:55 +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
ChiaNing f49bd31a22 Format adjustment for api doc (#4618) 2019-06-14 09:22:43 +08:00
JoneLau a18decfa83 fix circle (#4599) 2019-06-12 16:55:58 +08:00
jiaxin.lai 3359c9a30f Add physics interface api document (#4593) 2019-06-12 11:11:46 +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 4cbd3e63f2 split box\sphere collider component from base collider component (#4541) 2019-06-03 19:26:43 +08:00