Files
cocos4/cocos/physics/framework/deprecated.ts
T
jiaxin.lai a4af34630f integrate trimesh shape of ammo & cannon (#6232)
* stash

* cannon impl

* ammo mesh collider

* finish ammo mesh collider

* cannon trimesh shape

* tweaks

* tweaks

* tweaks

* update @cocos/ammo &  @cocos/cannon

* fix ci

* naming norm

* use config object

* renaming

* naming norm

* naming norm

* tweaks

* stash

* stash

* stash

* add error map

* export impl

* update package-lock

* export impl of world

* tweaks
2020-03-15 19:41:16 +08:00

46 lines
1.2 KiB
TypeScript

/**
* @hidden
*/
import { PhysicsSystem } from "./physics-system";
import { replaceProperty } from "../../core";
import { BoxColliderComponent } from "./components/collider/box-collider-component";
import { SphereColliderComponent } from "./components/collider/sphere-collider-component";
import { CapsuleColliderComponent } from "./components/collider/capsule-collider-component";
import { RigidBodyComponent } from "./components/rigid-body-component";
replaceProperty(PhysicsSystem, 'PhysicsSystem', [
{
"name": "ins",
"newName": "instance"
}
]);
replaceProperty(BoxColliderComponent.prototype, 'BoxColliderComponent.prototype', [
{
"name": "boxShape",
"newName": "shape"
}
]);
replaceProperty(SphereColliderComponent.prototype, 'SphereColliderComponent.prototype', [
{
"name": "sphereShape",
"newName": "shape"
}
]);
replaceProperty(CapsuleColliderComponent.prototype, 'CapsuleColliderComponent.prototype', [
{
"name": "capsuleShape",
"newName": "shape"
}
]);
replaceProperty(RigidBodyComponent.prototype, 'RigidBodyComponent.prototype', [
{
"name": "rigidBody",
"newName": "body"
}
]);