Class: Pilot

Pilot()

Airplane Pilot.

Constructor

new Pilot()

Instanciates a new Pilot.

A pilot is made up of of a boby, hair, face, ear (right and left), and a glass. It is a cool pilot with windblown. To simulate fluttering hair, we use only a few boxes.
Source:
See:

Members

angleHairs :Number

Pilot's hair angle.
Type:
  • Number
Source:

hairsTop :THREE.Object3D

Pilot's hair container.

Hair is made up of a back, side (right and left), and top.
This top portion can be animated. It is a set of 12 boxes (4x4x4),
disposed on a 4 x 3 grid on plane x-z:
 (-4, -4) (-4, 0) (-4, 4)
 (0, -4)  (0, 0)  (0, 4)
 (4, -4)  (4, 0)  (4, 4)
 (8, -4)  (8, 0)  (8, 4)
Type:
Source:

mesh :THREE.Object3D

Pilot's container.
Type:
Source:

Methods

updateHairs(increment)

Animate pilot's hair.

Each hair element will scale its y coordinate on a cyclical basis, between 75% and 100% of its original size.
Parameters:
Name Type Default Description
increment Number 0.2 amount to be added in each frame.
Source: