physics.toMKS()

Type Function
Library physics.*
Return value Number
Revision Release 2024.3703
Keywords MKS conversion
See also physics.fromMKS()

Overview

Convenience function for converting from Corona units to MKS units.

Syntax

physics.toMKS( unitName, value )
unitName (required)

String. Can be one of the following values:

  • "length"
  • "velocity"
  • "angularVelocity"
value (required)

Number. The value to convert from Corona units to MKS.

Example

local mks_units = physics.toMKS( "velocity", 16 )