Cache#addPhysicsData()

addPhysicsData(key, url, JSONData, format)

Add a new physics data object to the Cache.

Parameters
Name Type Description
key string

The key that this asset will be stored in the cache under. This should be unique within this cache.

url string

The URL the asset was loaded from. If the asset was not loaded externally set to null.

JSONData object

The physics data object (a JSON file).

format number

The format of the physics data.

Source code: loader/Cache.js (Line 390)
doc_phaser
2017-02-14 10:39:53
Comments
Leave a Comment

Please login to continue.