UNPKG

rl-loadout-lib

Version:

Load Rocket League assets into three.js

73 lines 1.52 kB
import { Item } from './item'; import { Bone, Vector3 } from 'three'; /** * Rocket League car wheels. */ export declare class Wheel extends Item { /** * The default OEM wheels. */ static readonly DEFAULT: Wheel; /** * Path to the GLTF model file of the wheel. */ model: string; /** * Path to the base texture of the rim. */ rim_base: string; /** * Path to the RGBA map of the rim. */ rim_rgb_map: string; /** * Path to the normal map of the rim. */ rim_n: string; /** * Path to the base texture of the tire. */ tire_base: string; /** * Path to the normal map of the tire. */ tire_n: string; } /** * Properties for a single wheel (out of 4 usually) on a body. */ export declare class WheelConfig { /** * Whether the wheel is on the right side. */ right: boolean; /** * Whether it's a front wheel or not. */ front: boolean; /** * Position of the wheel, relative to the joint. */ position: Vector3; /** * Width of the wheel. */ width: number; /** * Radius of the wheel. */ radius: number; /** * Side offset of the wheel. Positive values move the wheel "outwards". */ offset: number; /** * The joint this wheel attaches to. */ joint: Bone; /** * Create a new config identical to this. */ clone(): WheelConfig; } //# sourceMappingURL=wheel.d.ts.map