WorldcoreView

WorldcoreView

Extends the basic Croquet View with Worldcore-specific methods.

Members

# (readonly) time :number

Returns the system time in milliseconds at the last frame update.

Type:
  • number

# (readonly) delta :number

Returns the time in milliseconds between the last frame update and the previous one.

Type:
  • number

Methods

# service(name) → {ViewService}

Returns a pointer to the named view service.

Parameters:
Name Type Description
name string

The public name of the view service.

Returns:
Type
ViewService

# modelService(name) → {ModelService}

Returns a pointer to the named model service.

Note: The view should only read from the model service. Do not write to it, or call methods that modify it.

Parameters:
Name Type Description
name string

The public name of the model service.

Returns:
Type
ModelService