Preparing search index...
The search index is not available
elixr
elixr
Rigidbody
Class Rigidbody
Hierarchy
GameObject
Rigidbody
Index
Constructors
constructor
Properties
active
component
Mask
is
Game
Object
Accessors
angular
Drag
angular
Velocity
can
Sleep
collider
Visible
colliders
constraints
drag
enabled
gravity
Scale
is
Dynamic
is
Kinematic
is
Sleeping
is
Static
linear
Velocity
mass
Methods
add
add
Component
apply
Force
apply
Impulse
apply
Torque
apply
Torque
Impulse
clone
copy
destroy
get
Component
get
Component
Types
has
Component
remove
remove
Component
set
Angular
Velocity
set
Body
Type
set
Linear
Velocity
set
World
Transform
sleep
sync
Transform
update
Matrix
World
update
Transform
wake
Up
Constructors
constructor
new
Rigidbody
(
world
:
World
, __namedParameters
?:
RigidbodyOptions
)
:
Rigidbody
Parameters
world:
World
__namedParameters:
RigidbodyOptions
= {}
Returns
Rigidbody
Properties
active
active
:
boolean
= true
component
Mask
component
Mask
:
number
= 0
Readonly
is
Game
Object
is
Game
Object
:
boolean
= true
Accessors
angular
Drag
get
angularDrag
(
)
:
number
Returns
number
set
angularDrag
(
value
:
number
)
:
void
Parameters
value:
number
Returns
void
angular
Velocity
get
angularVelocity
(
)
:
Vector3
Returns
Vector3
can
Sleep
get
canSleep
(
)
:
boolean
Returns
boolean
collider
Visible
get
colliderVisible
(
)
:
boolean
Returns
boolean
set
colliderVisible
(
value
:
boolean
)
:
void
Parameters
value:
boolean
Returns
void
colliders
get
colliders
(
)
:
Collider
[]
Returns
Collider
[]
constraints
get
constraints
(
)
:
RigidbodyConstraints
Returns
RigidbodyConstraints
set
constraints
(
value
:
RigidbodyConstraints
)
:
void
Parameters
value:
RigidbodyConstraints
Returns
void
drag
get
drag
(
)
:
number
Returns
number
set
drag
(
value
:
number
)
:
void
Parameters
value:
number
Returns
void
enabled
get
enabled
(
)
:
boolean
Returns
boolean
set
enabled
(
value
:
boolean
)
:
void
Parameters
value:
boolean
Returns
void
gravity
Scale
get
gravityScale
(
)
:
number
Returns
number
set
gravityScale
(
value
:
number
)
:
void
Parameters
value:
number
Returns
void
is
Dynamic
get
isDynamic
(
)
:
boolean
Returns
boolean
is
Kinematic
get
isKinematic
(
)
:
boolean
Returns
boolean
is
Sleeping
get
isSleeping
(
)
:
boolean
Returns
boolean
is
Static
get
isStatic
(
)
:
boolean
Returns
boolean
linear
Velocity
get
linearVelocity
(
)
:
Vector3
Returns
Vector3
mass
get
mass
(
)
:
number
Returns
number
Methods
add
add
(
...
object
:
Object3D
<
Object3DEventMap
>
[]
)
:
Rigidbody
Parameters
Rest
...
object:
Object3D
<
Object3DEventMap
>
[]
Returns
Rigidbody
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
apply
Force
apply
Force
(
force
:
Vector3
)
:
void
Parameters
force:
Vector3
Returns
void
apply
Impulse
apply
Impulse
(
impulse
:
Vector3
)
:
void
Parameters
impulse:
Vector3
Returns
void
apply
Torque
apply
Torque
(
torque
:
Vector3
)
:
void
Parameters
torque:
Vector3
Returns
void
apply
Torque
Impulse
apply
Torque
Impulse
(
torqueImpulse
:
Vector3
)
:
void
Parameters
torqueImpulse:
Vector3
Returns
void
clone
clone
(
_recursive
?:
boolean
)
:
Rigidbody
Parameters
Optional
_recursive:
boolean
Returns
Rigidbody
copy
copy
(
_source
:
Rigidbody
, _recursive
?:
boolean
)
:
Rigidbody
Parameters
_source:
Rigidbody
Optional
_recursive:
boolean
Returns
Rigidbody
destroy
destroy
(
)
:
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
remove
(
...
object
:
Object3D
<
Object3DEventMap
>
[]
)
:
Rigidbody
Parameters
Rest
...
object:
Object3D
<
Object3DEventMap
>
[]
Returns
Rigidbody
remove
Component
remove
Component
<
T
>
(
componentClass
:
T
)
:
void
Type Parameters
T
extends
typeof
Component
Parameters
componentClass:
T
Returns
void
set
Angular
Velocity
set
Angular
Velocity
(
angularVelocity
:
Vector3
)
:
void
Parameters
angularVelocity:
Vector3
Returns
void
set
Body
Type
set
Body
Type
(
type
:
RigidbodyType
)
:
void
Parameters
type:
RigidbodyType
Returns
void
set
Linear
Velocity
set
Linear
Velocity
(
linearVelocity
:
Vector3
)
:
void
Parameters
linearVelocity:
Vector3
Returns
void
set
World
Transform
set
World
Transform
(
worldPosition
:
Vector3
, worldQuaternion
:
Quaternion
)
:
void
Parameters
worldPosition:
Vector3
worldQuaternion:
Quaternion
Returns
void
sleep
sleep
(
)
:
void
Returns
void
sync
Transform
sync
Transform
(
)
:
void
Returns
void
update
Matrix
World
update
Matrix
World
(
force
?:
boolean
)
:
void
Parameters
Optional
force:
boolean
Returns
void
update
Transform
update
Transform
(
)
:
void
Returns
void
wake
Up
wake
Up
(
)
:
void
Returns
void
GitHub
NPM
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
Modules
elixr
Rigidbody
constructor
active
component
Mask
is
Game
Object
angular
Drag
angular
Velocity
can
Sleep
collider
Visible
colliders
constraints
drag
enabled
gravity
Scale
is
Dynamic
is
Kinematic
is
Sleeping
is
Static
linear
Velocity
mass
add
add
Component
apply
Force
apply
Impulse
apply
Torque
apply
Torque
Impulse
clone
copy
destroy
get
Component
get
Component
Types
has
Component
remove
remove
Component
set
Angular
Velocity
set
Body
Type
set
Linear
Velocity
set
World
Transform
sleep
sync
Transform
update
Matrix
World
update
Transform
wake
Up