Search
Preparing search index...
The search index is not available
Creator3dAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
spec
IPhysicsWorld
Interface IPhysicsWorld
Hierarchy
IPhysicsWorld
Implemented by
BuiltInWorld
Index
Properties
impl
set
Allow
Sleep
set
Default
Material
set
Gravity
Methods
emit
Events
raycast
raycast
Closest
step
sync
Scene
ToPhysics
update
Collision
Matrix
Properties
Readonly
impl
impl
:
any
set
Allow
Sleep
set
Allow
Sleep
:
(
v
:
boolean
)
=>
void
Type declaration
(
v
:
boolean
)
:
void
Parameters
v:
boolean
Returns
void
set
Default
Material
set
Default
Material
:
(
v
:
PhysicMaterial
)
=>
void
Type declaration
(
v
:
PhysicMaterial
)
:
void
Parameters
v:
PhysicMaterial
Returns
void
set
Gravity
set
Gravity
:
(
v
:
IVec3Like
)
=>
void
Type declaration
(
v
:
IVec3Like
)
:
void
Parameters
v:
IVec3Like
Returns
void
Methods
emit
Events
emit
Events
(
)
:
void
Returns
void
raycast
raycast
(
worldRay
:
ray
, options
:
IRaycastOptions
, pool
:
RecyclePool
<
PhysicsRayResult
>
, results
:
PhysicsRayResult
[]
)
:
boolean
Parameters
worldRay:
ray
options:
IRaycastOptions
pool:
RecyclePool
<
PhysicsRayResult
>
results:
PhysicsRayResult
[]
Returns
boolean
raycast
Closest
raycast
Closest
(
worldRay
:
ray
, options
:
IRaycastOptions
, out
:
PhysicsRayResult
)
:
boolean
Parameters
worldRay:
ray
options:
IRaycastOptions
out:
PhysicsRayResult
Returns
boolean
step
step
(
fixedTimeStep
:
number
, timeSinceLastCalled
?:
undefined
|
number
, maxSubSteps
?:
undefined
|
number
)
:
void
Parameters
fixedTimeStep:
number
Optional
timeSinceLastCalled:
undefined
|
number
Optional
maxSubSteps:
undefined
|
number
Returns
void
sync
Scene
ToPhysics
sync
Scene
ToPhysics
(
)
:
void
Returns
void
update
Collision
Matrix
update
Collision
Matrix
(
group
:
number
, mask
:
number
)
:
void
Parameters
group:
number
mask:
number
Returns
void
Globals
cocos\physics\spec
IBase
Constraint
IBase
Shape
IBox
Shape
ICapsule
Shape
ICone
Shape
ICone
Twist
Constraint
ICylinder
Shape
IHinge
Constraint
IPhysics
World
impl
set
Allow
Sleep
set
Default
Material
set
Gravity
emit
Events
raycast
raycast
Closest
step
sync
Scene
ToPhysics
update
Collision
Matrix
IPlane
Shape
IPoint
ToPoint
Constraint
IRaycast
Options
IRigid
Body
ISimplex
Shape
ISphere
Shape
ITerrain
Asset
ITerrain
Shape
ITrimesh
Shape
Generated using
TypeDoc