automated change: update PhysX dependency cocos/PhysX@786a15a925
This commit is contained in:
parent
3da4d36410
commit
a9d9f97ae7
|
|
@ -1,3 +1,4 @@
|
|||
|
||||
interface Vec3 {
|
||||
x: number, y: number, z: number
|
||||
}
|
||||
|
|
@ -16,7 +17,7 @@ interface FilterData {
|
|||
declare namespace phy {
|
||||
/// Base ///
|
||||
|
||||
const physics: Physics;
|
||||
const physics: Physics
|
||||
abstract class Physics {
|
||||
private constructor ()
|
||||
createCooking (cp: CookingParams): Cooking
|
||||
|
|
@ -349,6 +350,8 @@ declare namespace phy {
|
|||
|
||||
/// Joints ///
|
||||
|
||||
|
||||
|
||||
/// Extensions ///
|
||||
|
||||
interface Spring {
|
||||
|
|
@ -612,22 +615,22 @@ declare namespace phy {
|
|||
|
||||
class SceneQueryHit {
|
||||
private constructor ()
|
||||
actor: RigidActor;
|
||||
shape: Shape;
|
||||
faceIndex: number;
|
||||
actor: RigidActor
|
||||
shape: Shape
|
||||
faceIndex: number
|
||||
}
|
||||
|
||||
class RayCastHit {
|
||||
private constructor ()
|
||||
actor: RigidActor;
|
||||
shape: Shape;
|
||||
faceIndex: number;
|
||||
u: number;
|
||||
v: number;
|
||||
normal: Vec3;
|
||||
position: Vec3;
|
||||
distance: number;
|
||||
flags: number;
|
||||
actor: RigidActor
|
||||
shape: Shape
|
||||
faceIndex: number
|
||||
u: number
|
||||
v: number
|
||||
normal: Vec3
|
||||
position: Vec3
|
||||
distance: number
|
||||
flags: number
|
||||
}
|
||||
|
||||
type preFilter = (filterData: FilterData, shape: Shape, actor: RigidActor, hitFlags: number) => QueryHitType
|
||||
|
|
@ -939,16 +942,12 @@ declare namespace phy {
|
|||
*/
|
||||
eRIGID_DYNAMIC,
|
||||
|
||||
|
||||
eARTICULATION_LINK
|
||||
}
|
||||
|
||||
enum ActorFlag {
|
||||
/**
|
||||
\brief Enable debug renderer for this actor
|
||||
@see PxScene.getRenderBuffer() PxRenderBuffer PxVisualizationParameter
|
||||
*/
|
||||
eVISUALIZATION = (1 << 0),
|
||||
|
||||
/**
|
||||
\brief Disables scene gravity for this actor
|
||||
*/
|
||||
|
|
@ -1150,6 +1149,8 @@ declare namespace phy {
|
|||
PxConvexMeshCookingType::eINFLATION_INCREMENTAL_HULL is set. The default algorithm
|
||||
PxConvexMeshCookingType::eQUICK_HULL ignores this flag, inflation is not used.
|
||||
|
||||
|
||||
|
||||
/**
|
||||
\brief Quantizes the input vertices using the k-means clustering
|
||||
|
||||
|
|
@ -1193,6 +1194,7 @@ declare namespace phy {
|
|||
*/
|
||||
eFAST_INERTIA_COMPUTATION = (1 << 7),
|
||||
|
||||
|
||||
/**
|
||||
\brief Convex hull input vertices are shifted to be around origin to provide better computation stability.
|
||||
It is recommended to provide input vertices around the origin, otherwise use this flag to improve
|
||||
|
|
@ -1349,6 +1351,7 @@ declare namespace phy {
|
|||
*/
|
||||
eARTICULATION = 4,
|
||||
|
||||
|
||||
}
|
||||
|
||||
enum FilterObjectFlag {
|
||||
|
|
|
|||
|
|
@ -1,15 +1,7 @@
|
|||
/// <reference path="./phy.d.ts" />
|
||||
|
||||
declare module 'external:emscripten/physx/physx.release.asm.js' {
|
||||
export default PhysX;
|
||||
}
|
||||
|
||||
declare module 'external:emscripten/physx/physx.release.wasm.js' {
|
||||
export default PhysX;
|
||||
}
|
||||
|
||||
// tslint:disable
|
||||
declare function PhysX (moduleOptions?: any): Promise<void>;
|
||||
declare function PhysX (): Promise<void>;
|
||||
|
||||
declare namespace PhysX {
|
||||
type Constructor<T = {}> = new (...args: any[]) => T;
|
||||
|
|
@ -101,3 +93,7 @@ declare namespace PhysX {
|
|||
|
||||
type Type = {}
|
||||
}
|
||||
|
||||
declare module '@cocos/physx' {
|
||||
export = PhysX;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3367,6 +3367,11 @@ var stackAlloc = function() {
|
|||
return (stackAlloc = Module["asm"]["stackAlloc"]).apply(null, arguments);
|
||||
};
|
||||
|
||||
/** @type {function(...*):?} */
|
||||
var dynCall_ji = Module["dynCall_ji"] = function() {
|
||||
return (dynCall_ji = Module["dynCall_ji"] = Module["asm"]["dynCall_ji"]).apply(null, arguments);
|
||||
};
|
||||
|
||||
/** @type {function(...*):?} */
|
||||
var dynCall_iifiiiijii = Module["dynCall_iifiiiijii"] = function() {
|
||||
return (dynCall_iifiiiijii = Module["dynCall_iifiiiijii"] = Module["asm"]["dynCall_iifiiiijii"]).apply(null, arguments);
|
||||
|
|
@ -3407,11 +3412,6 @@ var dynCall_viiiij = Module["dynCall_viiiij"] = function() {
|
|||
return (dynCall_viiiij = Module["dynCall_viiiij"] = Module["asm"]["dynCall_viiiij"]).apply(null, arguments);
|
||||
};
|
||||
|
||||
/** @type {function(...*):?} */
|
||||
var dynCall_ji = Module["dynCall_ji"] = function() {
|
||||
return (dynCall_ji = Module["dynCall_ji"] = Module["asm"]["dynCall_ji"]).apply(null, arguments);
|
||||
};
|
||||
|
||||
/** @type {function(...*):?} */
|
||||
var dynCall_jiji = Module["dynCall_jiji"] = function() {
|
||||
return (dynCall_jiji = Module["dynCall_jiji"] = Module["asm"]["dynCall_jiji"]).apply(null, arguments);
|
||||
|
|
|
|||
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
Reference in New Issue