mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
54 lines
1.4 KiB
TypeScript
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"
|
|
}
|
|
]);
|