getPhysicsData(key, object, fixtureKey) → {object}
Gets a Physics Data object from the cache.
The object is looked-up based on the key given.
Note: If the object cannot be found a console.warn message is displayed.
You can get either the entire data set, a single object or a single fixture of an object from it.
Parameters
| Name | Type | Argument | Default | Description | 
|---|---|---|---|---|
| key | string | The key of the asset to retrieve from the cache. | ||
| object | string | <optional> | null | If specified it will return just the physics object that is part of the given key, if null it will return them all. | 
| fixtureKey | string | Fixture key of fixture inside an object. This key can be set per fixture with the Phaser Exporter. | 
Returns
 object - 
 The requested physics object data if found.
- Source code: loader/Cache.js (Line 1187)
 
          
Please login to continue.