MCPcopy
hub / github.com/KilledByAPixel/LittleJS / collideWithObject

Method collideWithObject

src/engineObject.js:419–419  ·  view source on GitHub ↗

Called by the engine to check if an object collision should be resolved. Return true for physics to resolve the collision or false to ignore and resolve it manually. * @param {EngineObject} object - the object to test against * @return {boolean} - true if the collision should be resolved

(object)

Source from the content-addressed store, hash-verified

417 * @return {boolean} - true if the collision should be resolved by modifying it's position and velocity
418 */
419 collideWithObject(object) { return true; }
420
421 /** Get this object's up vector
422 * @param {number} [scale] - length of the vector

Callers 1

updatePhysicsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected