update(time)
	{
		if (this.boatobj)
		{
			this.boatobj.rotation.y += this.spatial.rot;
			this.boatobj.translateZ(this.spatial.velocity);
			this.boatobj.position.y = 0.5*Math.sin(2*time)-3.5;
		}
	}
// updating speed and velocity of the boat based on received inputs
updating speed and velocity of the boat based on received inputs
updating speed and velocity of the boat based on received inputs
update(time)
	{
		if (this.boatobj)
		{
			this.boatobj.rotation.y += this.spatial.rot;
			this.boatobj.translateZ(this.spatial.velocity);
			this.boatobj.position.y = 0.5*Math.sin(2*time)-3.5;
		}
	}
update ( time ) { if ( this . boatobj ) { this . boatobj . rotation . y += this . spatial . rot ; this . boatobj . translateZ ( this . spatial . velocity ) ; this . boatobj . position . y = 0.5 * Math . sin ( 2 * time ) - 3.5 ; } }
updating speed and velocity of the boat based on received inputs
updating speed and velocity of the boat based on received inputs