-
-
Notifications
You must be signed in to change notification settings - Fork 389
Migration
Alexander Buzin edited this page Jun 1, 2017
·
5 revisions
- WHS.Model -> WHS.Importer
-
WHS.World.setScene()is now.importScene() - (
WHS.Shape,WHS.Light,WHS.Camera)-
.setNative()removed. Use.native = myMeshinstead. -
.getNative()removed. Use.nativeinstead. -
.getParent()removed. Use.parentinstead. -
.setParams()removed. Use.params = {}instead.
-
- Object-oriented System -> Component-oriented System. Usage:
@MeshComponent
class BasicSphere extends Component {
// ...Or:
const mesh = new THREE.Mesh();
const elementFromMesh = WHS.Element(mesh, [WHS.MeshComponent]);- Classes changed:
-
WHS.Camera->WHS.CameraComponentdecorator. -
WHS.Light->WHS.LighgtComponentdecorator. -
WHS.Shape->WHS.MeshComponentdecorator. (WHS.Shapenow replacesWHS.Shape2D) -
WHS.Shapephysics part ->WHS.PhysicsComponentdecorator. -
WHS.Shapesoftbody processing part ->WHS.SoftbodyComponentdecorator.
-