phina.js.d.ts
Preparing search index...
phina
accessory
Physical
Interface Physical
interface
Physical
{
friction
:
number
;
gravity
:
phina
.
geom
.
Vector2
;
target
?:
phina
.
app
.
Element
;
velocity
:
phina
.
geom
.
Vector2
;
addEventListener
(
type
:
string
,
listener
:
Function
)
:
this
;
addForce
(
x
:
number
,
y
:
number
)
:
this
;
attachTo
(
element
:
phina
.
app
.
Element
)
:
this
;
clear
(
type
:
string
)
:
this
;
clearEventListener
(
type
:
string
)
:
this
;
dispatchEvent
(
e
:
{
type
:
string
}
)
:
this
;
dispatchEventByType
(
type
:
string
,
param
:
object
)
:
this
;
fire
(
e
:
{
type
:
string
}
)
:
this
;
flare
(
type
:
string
,
param
?:
object
)
:
this
;
force
(
x
:
number
,
y
:
number
)
:
this
;
getTarget
()
:
void
|
phina
.
app
.
Element
;
has
(
type
:
string
)
:
boolean
;
hasEventListener
(
type
:
string
)
:
boolean
;
isAttached
()
:
boolean
;
off
(
type
:
string
,
listener
:
Function
)
:
this
;
on
(
type
:
string
,
listener
:
Function
)
:
this
;
one
(
type
:
string
,
listener
:
Function
)
:
this
;
remove
()
:
void
;
removeEventListener
(
type
:
string
,
listener
:
Function
)
:
this
;
setFriction
(
fr
:
number
)
:
this
;
setGravity
(
x
:
number
,
y
:
number
)
:
this
;
setTarget
(
target
:
phina
.
app
.
Element
)
:
this
;
update
()
:
void
;
}
Hierarchy (
View Summary
)
phina
.
accessory
.
Accessory
Physical
Index
Properties
friction
gravity
target?
velocity
Methods
add
Event
Listener
add
Force
attach
To
clear
clear
Event
Listener
dispatch
Event
dispatch
Event
By
Type
fire
flare
force
get
Target
has
has
Event
Listener
is
Attached
off
on
one
remove
remove
Event
Listener
set
Friction
set
Gravity
set
Target
update
Properties
friction
friction
:
number
gravity
gravity
:
phina
.
geom
.
Vector2
Optional
target
target
?:
phina
.
app
.
Element
velocity
velocity
:
phina
.
geom
.
Vector2
Methods
add
Event
Listener
addEventListener
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
add
Force
addForce
(
x
:
number
,
y
:
number
)
:
this
Parameters
x
:
number
y
:
number
Returns
this
attach
To
attachTo
(
element
:
phina
.
app
.
Element
)
:
this
Parameters
element
:
phina
.
app
.
Element
Returns
this
clear
clear
(
type
:
string
)
:
this
Parameters
type
:
string
Returns
this
clear
Event
Listener
clearEventListener
(
type
:
string
)
:
this
Parameters
type
:
string
Returns
this
dispatch
Event
dispatchEvent
(
e
:
{
type
:
string
}
)
:
this
Parameters
e
:
{
type
:
string
}
Returns
this
dispatch
Event
By
Type
dispatchEventByType
(
type
:
string
,
param
:
object
)
:
this
Parameters
type
:
string
param
:
object
Returns
this
fire
fire
(
e
:
{
type
:
string
}
)
:
this
Parameters
e
:
{
type
:
string
}
Returns
this
flare
flare
(
type
:
string
,
param
?:
object
)
:
this
Parameters
type
:
string
Optional
param
:
object
Returns
this
force
force
(
x
:
number
,
y
:
number
)
:
this
Parameters
x
:
number
y
:
number
Returns
this
get
Target
getTarget
()
:
void
|
phina
.
app
.
Element
Returns
void
|
phina
.
app
.
Element
has
has
(
type
:
string
)
:
boolean
Parameters
type
:
string
Returns
boolean
has
Event
Listener
hasEventListener
(
type
:
string
)
:
boolean
Parameters
type
:
string
Returns
boolean
is
Attached
isAttached
()
:
boolean
Returns
boolean
off
off
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
on
on
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
one
one
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
remove
remove
()
:
void
Returns
void
remove
Event
Listener
removeEventListener
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
set
Friction
setFriction
(
fr
:
number
)
:
this
Parameters
fr
:
number
Returns
this
set
Gravity
setGravity
(
x
:
number
,
y
:
number
)
:
this
Parameters
x
:
number
y
:
number
Returns
this
set
Target
setTarget
(
target
:
phina
.
app
.
Element
)
:
this
Parameters
target
:
phina
.
app
.
Element
Returns
this
update
update
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
friction
gravity
target
velocity
Methods
add
Event
Listener
add
Force
attach
To
clear
clear
Event
Listener
dispatch
Event
dispatch
Event
By
Type
fire
flare
force
get
Target
has
has
Event
Listener
is
Attached
off
on
one
remove
remove
Event
Listener
set
Friction
set
Gravity
set
Target
update
phina.js.d.ts
Loading...