Clock

THREE.Clock
See theClock companion object
class Clock(var autoStart: Boolean = ...) extends Object

Class for keeping track of time.

Attributes

See also

Timer for the recommended replacement

Companion
object
Deprecated
[Since version r183] Use THREE.Timer instead. Clock will be removed in a future version.

since r183. Use Timer instead.

Graph
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def getDelta(): Double

Returns the delta time in seconds.

Returns the delta time in seconds.

Attributes

def getElapsedTime(): Double

Returns the elapsed time in seconds.

Returns the elapsed time in seconds.

Attributes

def start(): Unit

Starts the clock.

Starts the clock.

Attributes

def stop(): Unit

Stops the clock.

Stops the clock.

Attributes

Inherited methods

def hasOwnProperty(v: String): Boolean

Attributes

Inherited from:
Object
def isPrototypeOf(v: Object): Boolean

Attributes

Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean

Attributes

Inherited from:
Object
def toLocaleString(): String

Attributes

Inherited from:
Object
def valueOf(): Any

Attributes

Inherited from:
Object

Concrete fields

var autoStart: Boolean
var elapsedTime: Double

Keeps track of the total time that the clock has been running.

Keeps track of the total time that the clock has been running.

Attributes

var oldTime: Double

Holds the time at which the clock's start(), getElapsedTime() or getDelta() methods were last called.

Holds the time at which the clock's start(), getElapsedTime() or getDelta() methods were last called.

Attributes

var running: Boolean

Whether the clock is running or not.

Whether the clock is running or not.

Attributes

var startTime: Double

Holds the time at which the clock's start() method was last called.

Holds the time at which the clock's start() method was last called.

Attributes