UNPKG

rl-loadout-lib

Version:

Load Rocket League assets into three.js

35 lines 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const body_model_1 = require("./body-model"); /** * Class for the 3D model of The Dark Knight Rises Tumbler. Needed because of the double back wheels and custom coloring. */ class BerryModel extends body_model_1.BodyModel { setPaintColor(color) { } changeDecal(decalAssets, paints) { } setAccentColor(color) { } setDecalPaintColor(color) { } getWheelPositions() { super.getWheelPositions(); const confToAdd = []; for (const config of this.wheelConfig) { if (!config.front) { const newConfig = config.clone(); if (newConfig.right) { newConfig.position.setY(newConfig.position.y - newConfig.width); } else { newConfig.position.setY(newConfig.position.y + newConfig.width); } confToAdd.push(newConfig); } } this.wheelConfig = this.wheelConfig.concat(confToAdd); } } exports.BerryModel = BerryModel; //# sourceMappingURL=berry-model.js.map