Class: Computer

Babylon. Computer


new Computer(scene, video, room, camera, options)

Parameters:
Name Type Description
scene scene

Babylonjs scene that the keyboard will be added to

video *

Video to display on the screen

room ComputerConnection
camera *
options object
Properties
Name Type Argument Default Description
initialPosition object <optional>
{ x: 0, y: 0, z: 0 }

The initial position of the keyboard

initialScalar number <optional>
0.5

The initial scale of the keyboard object (usually small)

hideMoveIcon boolean <optional>
false

The boolean for hiding the move icon, set true to hide

hideMultiMonitor boolean <optional>
false

The boolean for hiding multi monitor icon

includeKeyboard boolean <optional>
false

The boolean for enabling keyboard

iconActiveColor string <optional>
rgb(0, 255, 255)

Changes the default active icon color

iconColor string <optional>
rgb(255, 255, 255)

Changes the default icon color

attachTo Mesh <optional>
false

Plane to use as computer monitor instead of creating one

Properties:
Name Type Default Description
object3d Mesh

The screen and main object that children are added to

iconActiveColor string rgb(0,255,255)

The icon active color

iconColor string rgb(255,255,255)

The default icon color

screenBackMaterial Material

The screenback material

screenBack Mesh

The screenback mesh box