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
VisualCollisionShape
Class VisualCollisionShape
Hierarchy
CollisionShape
VisualCollisionShape
Index
Constructors
constructor
Properties
tag
Accessors
visual
visual
Entity
Methods
check
Collisions
copy
deserialize
destroy
get
Test
Priority
isA
serialize
set
Property
set
State
upgrade
Constructors
constructor
new
Visual
Collision
Shape
(
props
?:
ObjectProps
<
VisualCollisionShape
>
)
:
VisualCollisionShape
Parameters
Optional
props:
ObjectProps
<
VisualCollisionShape
>
Returns
VisualCollisionShape
Properties
tag
tag
:
string
= "Visual"
Accessors
visual
get
visual
(
)
:
null
|
Visual
Returns
null
|
Visual
visual
Entity
set
visualEntity
(
entity
:
Entity
)
:
void
Parameters
entity:
Entity
Returns
void
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
Visual
Collision
Shape
constructor
tag
visual
visual
Entity
check
Collisions
copy
deserialize
destroy
get
Test
Priority
isA
serialize
set
Property
set
State
upgrade