threejsx

0.0.33 • Public • Published

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类
collisionTest mesh包围盒碰撞检测(如果mesh是buff类型,必须用transformGeometry先转换)

Readme

Keywords

Package Sidebar

Install

npm i threejsx

Weekly Downloads

0

Version

0.0.33

License

ISC

Unpacked Size

22.8 MB

Total Files

94

Last publish

Collaborators

  • pxim