mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 16:52:43 +08:00
a4af34630f
* 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
46 lines
1.2 KiB
TypeScript
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"
|
|
}
|
|
]);
|