-
-
Notifications
You must be signed in to change notification settings - Fork 391
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 = myMesh
instead. -
.getNative()
removed. Use.native
instead. -
.getParent()
removed. Use.parent
instead. -
.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.CameraComponent
decorator. -
WHS.Light
->WHS.LighgtComponent
decorator. -
WHS.Shape
->WHS.MeshComponent
decorator. (WHS.Shape
now replacesWHS.Shape2D
) -
WHS.Shape
physics part ->WHS.PhysicsComponent
decorator. -
WHS.Shape
softbody processing part ->WHS.SoftbodyComponent
decorator.
-