Search
Preparing search index...
The search index is not available
Spider Engine API
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
SphereCollisionShape
Class SphereCollisionShape
Hierarchy
CollisionShape
SphereCollisionShape
Index
Constructors
constructor
Properties
center
radius
tag
Methods
check
Collisions
copy
deserialize
destroy
get
Test
Priority
isA
serialize
set
Property
set
State
upgrade
Constructors
constructor
new
Sphere
Collision
Shape
(
props
?:
ObjectProps
<
SphereCollisionShape
>
)
:
SphereCollisionShape
Parameters
Optional
props:
ObjectProps
<
SphereCollisionShape
>
Returns
SphereCollisionShape
Properties
center
center
:
Vector3
= new Vector3()
radius
radius
:
number
= 1
tag
tag
:
string
= "Sphere"
Methods
check
Collisions
check
Collisions
(
other
:
CollisionShape
, myTransform
:
Transform
, otherTransform
:
Transform
, onCollision
:
function
)
:
void
Parameters
other:
CollisionShape
myTransform:
Transform
otherTransform:
Transform
onCollision:
function
(
particleIndex
?:
undefined
|
number
)
:
void
Parameters
Optional
particleIndex:
undefined
|
number
Returns
void
Returns
void
copy
copy
(
)
:
SerializableObject
Returns
SerializableObject
deserialize
deserialize
(
json
:
SerializedObjectType
)
:
Promise
<
SerializableObject
>
|
SerializableObject
Parameters
json:
SerializedObjectType
Returns
Promise
<
SerializableObject
>
|
SerializableObject
destroy
destroy
(
)
:
void
Returns
void
get
Test
Priority
get
Test
Priority
(
)
:
CollisionTestPriority
Returns
CollisionTestPriority
isA
isA<T>
(
type
:
object
)
:
boolean
Type parameters
T
Parameters
type:
object
constructor
:
function
new __type
(
...
args
:
any
[]
)
:
T
Parameters
Rest
...
args:
any
[]
Returns
T
Returns
boolean
serialize
serialize
(
)
:
SerializedObjectType
Returns
SerializedObjectType
set
Property
set
Property
(
name
:
string
, value
:
any
)
:
void
Parameters
name:
string
value:
any
Returns
void
set
State
set
State<T>
(
props
:
ObjectProps
<
T
>
)
:
void
Type parameters
T
Parameters
props:
ObjectProps
<
T
>
Returns
void
upgrade
upgrade
(
json
:
SerializedObject
, previousVersion
:
number
)
:
SerializedObject
Parameters
json:
SerializedObject
previousVersion:
number
Returns
SerializedObject
Globals
Sphere
Collision
Shape
constructor
center
radius
tag
check
Collisions
copy
deserialize
destroy
get
Test
Priority
isA
serialize
set
Property
set
State
upgrade