Files
cocos4/cocos/physics/framework/deprecated.ts
T
2020-04-28 14:37:12 +08:00

54 lines
1.4 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";
import { ColliderComponent } from "./components/collider/collider-component";
replaceProperty(PhysicsSystem, 'PhysicsSystem', [
{
"name": "ins",
"newName": "instance"
}
]);
replaceProperty(ColliderComponent.prototype, 'ColliderComponent.prototype', [
{
"name": "attachedRigidbody",
"newName": "attachedRigidBody"
}
]);
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"
}
]);