Preparing search index...
The search index is not available
elixr
elixr
XRController
Class XRController
Hierarchy
GameObject
<
ExtendedEventMap
>
XRController
Index
Constructors
constructor
Properties
active
component
Mask
is
Game
Object
is
Group
Accessors
connected
gamepad
handedness
model
ray
Space
Methods
add
Component
clone
connect
copy
destroy
disconnect
get
Component
get
Component
Types
has
Component
remove
Component
update
update
Matrix
World
Constructors
constructor
new XRController
(
world
:
World
, handedness
:
XRHandedness
, player
:
GameObject
<
Object3DEventMap
>
)
:
XRController
Parameters
world:
World
handedness:
XRHandedness
player:
GameObject
<
Object3DEventMap
>
Returns
XRController
Properties
active
active
:
boolean
= true
component
Mask
component
Mask
:
number
= 0
Readonly
is
Game
Object
is
Game
Object
:
boolean
= true
is
Group
is
Group
:
boolean
= true
Accessors
connected
get
connected
(
)
:
boolean
Returns
boolean
gamepad
get
gamepad
(
)
:
GamepadWrapper
Returns
GamepadWrapper
handedness
get
handedness
(
)
:
XRHandedness
Returns
XRHandedness
model
get
model
(
)
:
Object3D
<
Object3DEventMap
>
Returns
Object3D
<
Object3DEventMap
>
ray
Space
get
raySpace
(
)
:
Object3D
<
Object3DEventMap
>
Returns
Object3D
<
Object3DEventMap
>
Methods
add
Component
add
Component
<
T
>
(
componentClass
:
T
, initialData
?:
{
[key:
string
]
:
any
;
}
)
:
Component
Type Parameters
T
extends
typeof
Component
Parameters
componentClass:
T
initialData:
{
[key:
string
]
:
any
;
}
= {}
[
key:
string
]:
any
Returns
Component
clone
clone
(
_recursive
?:
boolean
)
:
XRController
Parameters
Optional
_recursive:
boolean
Returns
XRController
connect
connect
(
inputSource
:
XRInputSource
)
:
void
Parameters
inputSource:
XRInputSource
Returns
void
copy
copy
(
_source
:
XRController
, _recursive
?:
boolean
)
:
XRController
Parameters
_source:
XRController
Optional
_recursive:
boolean
Returns
XRController
destroy
destroy
(
)
:
void
Returns
void
disconnect
disconnect
(
)
:
void
Returns
void
get
Component
get
Component
<
T
>
(
componentClass
:
{
bitmask
:
number
;
defaults
:
{
[key:
string
]
:
any
;
}
;
new
(
_cm
:
ComponentManager
, _mi
:
number
)
:
T
;
}
)
:
T
Type Parameters
T
extends
Component
<
T
>
Parameters
componentClass:
{
bitmask
:
number
;
defaults
:
{
[key:
string
]
:
any
;
}
;
new
(
_cm
:
ComponentManager
, _mi
:
number
)
:
T
;
}
new
(
_cm
:
ComponentManager
, _mi
:
number
)
:
T
Parameters
_cm:
ComponentManager
_mi:
number
Returns
T
bitmask
:
number
defaults
:
{
[key:
string
]
:
any
;
}
[
key:
string
]:
any
Returns
T
get
Component
Types
get
Component
Types
(
)
:
typeof
Component
[]
Returns
typeof
Component
[]
has
Component
has
Component
<
T
>
(
componentClass
:
T
)
:
boolean
Type Parameters
T
extends
typeof
Component
Parameters
componentClass:
T
Returns
boolean
remove
Component
remove
Component
<
T
>
(
componentClass
:
T
)
:
void
Type Parameters
T
extends
typeof
Component
Parameters
componentClass:
T
Returns
void
update
update
(
inputSource
:
XRInputSource
, frame
:
XRFrame
, referenceSpace
:
XRReferenceSpace
)
:
void
Parameters
inputSource:
XRInputSource
frame:
XRFrame
referenceSpace:
XRReferenceSpace
Returns
void
update
Matrix
World
update
Matrix
World
(
force
?:
boolean
)
:
void
Parameters
Optional
force:
boolean
Returns
void
GitHub
NPM
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
Modules
elixr
XRController
constructor
active
component
Mask
is
Game
Object
is
Group
connected
gamepad
handedness
model
ray
Space
add
Component
clone
connect
copy
destroy
disconnect
get
Component
get
Component
Types
has
Component
remove
Component
update
update
Matrix
World