Box2D Class
Static class holding library specific information such as the version and buildDate of the library.
Item Index
Methods
assert
(
Void
public
-
condition
-
[message="Assertion_Failed"]
-
[args]
Assertion testing.
Parameters:
-
condition
Boolean -
[message="Assertion_Failed"]
String= optionaloptional message
-
[args]
... optionaloptional arguments
Returns:
Void:
FREE
(
Void
public
static
-
mem
If you implement MALLOC, you should also implement FREE.
Parameters:
-
mem
Returns:
Void:
MALLOC
(
public
static
-
size
Implement this function to use your own memory allocator. Gettin' hard core with ASM.js?
Parameters:
-
size
Number
Returns:
:
newNumberVector
(
Array.-
length
Returns a 'typed array' vector of Numbers.
Parameters:
-
length
Int
Returns:
Array. :
newVector
(
Array.<>
public
-
length
-
initialize
Returns a 'typed array' vector. An array of instantiated objects.
Parameters:
-
length
Int -
initialize
FunctionFunction returning an instantiated object for each index.
Returns:
Array.<>:
parseUInt
(
Int
public
-
number
Converts a number to an unsigned integer.
Parameters:
-
number
Number
Returns:
Int:
unsigned integer