UNPKG

@threlte/rapier

Version:

Components and hooks to use the Rapier physics engine in Threlte

9 lines (8 loc) 246 B
export const applyTransforms = (object, position, rotation, scale) => { if (position) object.position.set(...position); if (rotation) object.rotation.set(...rotation); if (scale) object.scale.set(...scale); };