Files
cocos4/cocos/3d/framework/physics/physics-system.ts
T
Leslie Leigh 3ed9edfbc6 phy framework (#3644)
* phy framework

* phy mat

* framework/index.ts

* a node can have more than one collider

* rename physical to physics

* fix

* fix

* support mix ts js

* fix

* fix problems in issue

* fix

* remove RigidBodyType, add DataFlow

* useGravity, freezeRotation, isKinematic

* raycasts

* fit buildin-world raycast options

* add contact material

* lint

* add rigid-body-component.ts

* some improvements

* improvements

* fix bug
2018-12-27 12:03:10 +08:00

17 lines
310 B
TypeScript

import { PhysicsWorld } from './world';
export class PhysicsSystem {
private _world: PhysicsWorld;
constructor() {
this._world = new PhysicsWorld();
}
public update(deltaTime: number) {
this._world.step(deltaTime);
}
get world() {
return this._world;
}
}