Files
cocos4/@types/consts.d.ts
T
jiaxin.lai 65b0478c69 v1.2 new physics features (#7037)
* 3d v1.1.1-exp physics expriment (#6787)

* activate when not awake (#6781)

* activate when not awake

* cannon too

* off event listener when onDestroy

* add clearVelocity & clearForces

* add CC_CONFIG to ammo\cannon

* add convex mesh & reuse mesh

* cache enable false by default

* terrain collider

* cone collider

* fix scale of ammo box & sphere

* simple collider

* add worldBounds & boundingSphere to collider

* add clear*** to rigid body

* enhance physics material

* enhance event

* plane collider

* stash

* tweaks

* update @cocos/ammo to v1.0.7-beta.1

* typing

* enchance update shape dynamic

* absolute scale cannon-box

* expose allowsleep

* fix warning of generate declaration

* remove physics_builtin

* DO NOT MERGE

* Better reuse

* Correct construct and deconstruct

* avoid ammo memory leaks

* minor refactor contact data

* fix cannon terrain tileSize

* stash

* optimize auto wakeup

* [Ammo] fix update by re add

* 400~

* overwrite ArrayCollisionMatrix.prototype.reset

* Export enum by namespace

* stash

* fix remove child shape of btCompound

* fix event with CCD

* dynamic instantiate

* STASH

* add group to rigid body

* update attachedRigidBody of collider in editor

* stash physics config

* tweaks of ammo config

* stash

* stash

* collision matrix

* stash

* rename deltaTime to fixedTimeStep

* group mask collider

* allow get mask

* set default group to Layers.Enum.DEFAULT

* add group change fallback

* cannon collision matrix

* fix

* update @cocos/ammo to 1.0.7-beta.2

* more prop

* fix

* disable on 1.1.1-exp

* tweaks

* fix circular dependency

* tweaks

* rename simple to simplex

* rename collider -> colliders

* stash

* ammo p2p

* hinge constraint

* adapt cannon p2p pivotB

* ammo p2p setPivotB

* constraint

* tweaks

* remove macro of physics

* refactor physics selector

* import ammo from ammo-instantiated

* update @cocos/ammo

* update @cocos/cannon
2020-08-03 11:00:07 +08:00

90 lines
1.6 KiB
TypeScript

declare module "internal:constants" {
/**
* Running in published project.
*/
export const BUILD: boolean;
/**
* Running in the engine's unit test.
*/
export const TEST: boolean;
/**
* Running in the editor.
*/
export const EDITOR: boolean;
/**
* Preview in browser or simulator.
*/
export const PREVIEW: boolean;
/**
* Running in the editor or preview.
*/
export const DEV: boolean;
/**
* Running in the editor or preview, or build in debug mode.
*/
export const DEBUG: boolean;
/**
* Running in native platform (mobile app, desktop app, or simulator).
*/
export const JSB: boolean;
/**
* Running in the Wechat's mini game.
*/
export const WECHAT: boolean;
/**
* Running in the alipay's mini game.
*/
export const ALIPAY: boolean;
/**
* Running in the xiaomi's quick game.
*/
export const XIAOMI: boolean;
/**
* Running in the baidu's mini game.
*/
export const BAIDU: boolean;
/**
* Running in the cocosplay.
*/
export const COCOSPLAY: boolean;
/**
* Running in the huawei's quick game.
*/
export const HUAWEI: boolean;
/**
* Running in the oppo's mini game.
*/
export const OPPO: boolean;
/**
* Running in the vivo's mini game.
*/
export const VIVO: boolean;
/**
* Running in mini game.
*/
export const MINIGAME: boolean;
/**
* Running in runtime environments.
*/
export const RUNTIME_BASED: boolean;
export const SUPPORT_JIT: boolean;
}