主要支援的功能
Version: 0.4.0
- Script
script3d.exist(model name):Boolean
script3d.notExist(model name):Boolean
script3d.loaded(texture file path or model file path):Boolean
script3d.notLoaded(texture file path or model file path):Boolean
script3d.pointerLock():Boolean
script3d.movementX():Number
script3d.movementY():Number
script3d.cameraPosition(0, "x" or "y" or "z"):Number
script3d.cameraRotation(0, "x" or "y" or "z"):Number
script3d.modelPosition(model name, "x" or "y" or "z"):Number
script3d.modelRotation(model name, "x" or "y" or "z"):Number
script3d.checkCollisions(model name, target model name):Boolean
script3d.collisionResult("Hit" or "CenterX" or "CenterY" or "CenterZ" or "SizeX" or "SizeY" or "SizeZ" or "MoveX" or "MoveY" or "MoveZ"):Boolean or Number
script3d.parentName(model name or camera id):String
script3d.modelsList(list name, index):String
script3d.modelsListLength(list name):Number
script3d.modelsListSelected(list name):String
script3d.modelsListReachedEnd(list name):Boolean
script3d.modelVariable(model name, variable name):String or Number
- Control characters
\M[model name,variable name]
- Plugin command help for MV
3d scene background [file path]
3d scene pointerLock [true or false]
3d scene show2dMap [true or false]
3d scene clear
3d scene fog [rgb(255,255,255)] [near] [far]
3d texture load [file path]
3d camera translate [camera id] [x] [y] [z]
3d camera rotate [camera id] [x] [y] [z]
3d camera position [camera id] [x] [y] [z]
3d camera rotation [camera id] [x] [y] [z]
3d camera sameAsModel [camera id] [model name] [true or false (position)] [true or false (rotation)]
3d camera lookAt [camera id] [model name] [angular speed]
3d camera detach [camera id]
3d camera fov [camera id] [fov]
3d camera easy [camera id] [off or first or third] [offset] [true or false (rotation)]
3d model load [file path] [model name]
3d model create [box or plane] [model name] [texture file path] [width] [height] [depth]
3d model translate [model name] [x] [y] [z]
3d model rotate [model name] [x] [y] [z]
3d model position [model name] [x] [y] [z]
3d model rotation [model name] [x] [y] [z]
3d model scale [model name] [x] [y] [z]
3d model sameAsModel [model name] [target model name] [true or false (position)] [true or false (rotation)] [true or false (scale)]
3d model sameAsCamera [model name] [camera id] [true or false (position)] [true or false (rotation)]
3d model lookAt [model name] [target model name] [angular speed]
3d model lookAt [model name] camera [camera id] [angular speed]
3d model animation [model name] play [animation index] [once or repeat or pingpong]
3d model animation [model name] pause [true or false]
3d model remove [model name]
3d model checkCollisions [model name] [target model name]
3d model resolveCollisions [model name] [target model name]
[Experimental] 3d model resolveCollisionsWithMap [model name]
3d model resolveCollisionsWithModelsList [list name] [target list name]
3d model attachModel [model name] [target model name]
3d model attachCamera [model name] [camera id]
3d model detach [model name]
3d model setModelsList [list name] [parent model name] [forward match of child model name] [true or false (include descendants)]
3d model selectFirst [list name]
3d model selectedName [list name] [variable id]
3d model selectNext [list name]
3d model setModelVariable [model name] [variable name] [= or + or - or * or / or %] [value]
- License
The MIT License (MIT)
https://opensource.org/license/mit/
Copyright (c) 2023 PANDAKO
External libraries used by this plugin.
three.js is distributed under the MIT license.