0.0.33 • Published 3 years ago

threejsx v0.0.33

Weekly downloads
4
License
ISC
Repository
github
Last release
3 years ago

threejsx

介绍 / Intro

基于 threejs 扩展的一些工具和方法。

因此使用此库前,必须保证有 threejs 环境:

js 里 引入 threejs

 import * as THREE from "three"

安装 / Install

npm i threejsx

引入 / Import

import 整个包

import * as threejsx from 'threejsx'

import 单个组件

import {ModelAnimationObject} from 'threejsx'

使用 / Use

const animationObj = new ModelAnimationObject(object);    
animationObj.addEventListener( 'finished', (event)=>{
    // console.log( event.message );
} );  

组件 / Component

组件说明使用备注
ModelAnimationObject操作模型动画的Object类
collisionTestmesh包围盒碰撞检测(如果mesh是buff类型,必须用transformGeometry先转换)
0.0.32

3 years ago

0.0.33

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago