Preparing search index...
The search index is not available
kokomi.js
kokomi.js
Box
Class Box
A cute box mesh that we can see everywhere
Hierarchy (
view full
)
Component
Box
Index
Constructors
constructor
Properties
base
container
emitter
mesh
Methods
add
Existing
emit
off
on
spin
update
Constructors
constructor
new
Box
(
base
,
config
?
)
:
Box
Parameters
base
:
Base
config
:
Partial
<
BoxConfig
>
= {}
Returns
Box
Properties
base
base
:
Base
container
container
:
Scene
emitter
emitter
:
Emitter
<
any
>
mesh
mesh
:
Mesh
<
BufferGeometry
<
NormalBufferAttributes
>
,
Material
|
Material
[]
,
Object3DEventMap
>
Methods
add
Existing
add
Existing
(
)
:
void
Returns
void
emit
emit
(
type
,
event
?
)
:
void
Parameters
type
:
string
event
:
any
= {}
Returns
void
off
off
(
type
,
handler
)
:
void
Parameters
type
:
string
handler
:
any
Returns
void
on
on
(
type
,
handler
)
:
void
Parameters
type
:
string
handler
:
any
Returns
void
spin
spin
(
time
,
axis
?
,
speed
?
)
:
void
Parameters
time
:
number
axis
:
"x"
|
"y"
|
"z"
= "y"
speed
:
number
= 1
Returns
void
update
update
(
time
)
:
void
Parameters
time
:
number
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
base
container
emitter
mesh
add
Existing
emit
off
on
spin
update
kokomi.js
Loading...
A cute box mesh that we can see everywhere