Search
Preparing search index...
The search index is not available
CocosCreatorAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
dynamics
b2Fixture
Class b2Fixture
Hierarchy
b2Fixture
Index
Constructors
constructor
Properties
m_
body
m_
density
m_
filter
m_
friction
m_
is
Sensor
m_
next
m_
proxies
m_
restitution
m_
shape
m_
user
Data
Accessors
mproxy
Count
Methods
Compute
Distance
Create
Proxies
Destroy
Proxies
Dump
GetAABB
Get
Body
Get
Density
Get
Filter
Data
Get
Friction
Get
Mass
Data
Get
Next
Get
Restitution
Get
Shape
Get
Type
Get
User
Data
Is
Sensor
Ray
Cast
Refilter
Reset
Set
Density
Set
Filter
Data
Set
Friction
Set
Restitution
Set
Sensor
Set
User
Data
Synchronize
Proxies
Test
Point
Touch
Proxies
Constructors
constructor
newb2
Fixture
(
body
:
b2Body
, def
:
b2IFixtureDef
)
:
b2Fixture
Parameters
body:
b2Body
def:
b2IFixtureDef
Returns
b2Fixture
Properties
Readonly
m_
body
m_
body
:
b2Body
m_
density
m_
density
:
number
= 0
Readonly
m_
filter
m_
filter
:
b2Filter
= new b2Filter()
m_
friction
m_
friction
:
number
= 0
m_
is
Sensor
m_
is
Sensor
:
boolean
= false
m_
next
m_
next
:
b2Fixture
|
null
= null
Readonly
m_
proxies
m_
proxies
:
b2FixtureProxy
[]
= []
m_
restitution
m_
restitution
:
number
= 0
Readonly
m_
shape
m_
shape
:
b2Shape
m_
user
Data
m_
user
Data
:
any
= null
Accessors
mproxy
Count
get
mproxyCount
(
)
:
number
Returns
number
Methods
Compute
Distance
Compute
Distance
(
p
:
b2Vec2
, normal
:
b2Vec2
, childIndex
:
number
)
:
number
Parameters
p:
b2Vec2
normal:
b2Vec2
childIndex:
number
Returns
number
Create
Proxies
Create
Proxies
(
)
:
void
Returns
void
Destroy
Proxies
Destroy
Proxies
(
)
:
void
Returns
void
Dump
Dump
(
log
:
(
format
:
string
,
...
args
:
any
[]
)
=>
void
, bodyIndex
:
number
)
:
void
Parameters
log:
(
format
:
string
,
...
args
:
any
[]
)
=>
void
(
format
:
string
,
...
args
:
any
[]
)
:
void
Parameters
format:
string
Rest
...
args:
any
[]
Returns
void
bodyIndex:
number
Returns
void
GetAABB
GetAABB
(
childIndex
:
number
)
:
Readonly
<
b2AABB
>
Parameters
childIndex:
number
Returns
Readonly
<
b2AABB
>
Get
Body
Get
Body
(
)
:
b2Body
Returns
b2Body
Get
Density
Get
Density
(
)
:
number
Returns
number
Get
Filter
Data
Get
Filter
Data
(
)
:
Readonly
<
b2Filter
>
Returns
Readonly
<
b2Filter
>
Get
Friction
Get
Friction
(
)
:
number
Returns
number
Get
Mass
Data
Get
Mass
Data
(
massData
?:
b2MassData
)
:
b2MassData
Parameters
Default value
massData:
b2MassData
= new b2MassData()
Returns
b2MassData
Get
Next
Get
Next
(
)
:
b2Fixture
|
null
Returns
b2Fixture
|
null
Get
Restitution
Get
Restitution
(
)
:
number
Returns
number
Get
Shape
Get
Shape
(
)
:
b2Shape
Returns
b2Shape
Get
Type
Get
Type
(
)
:
b2ShapeType
Returns
b2ShapeType
Get
User
Data
Get
User
Data
(
)
:
any
Returns
any
Is
Sensor
Is
Sensor
(
)
:
boolean
Returns
boolean
Ray
Cast
Ray
Cast
(
output
:
b2RayCastOutput
, input
:
b2RayCastInput
, childIndex
:
number
)
:
boolean
Parameters
output:
b2RayCastOutput
input:
b2RayCastInput
childIndex:
number
Returns
boolean
Refilter
Refilter
(
)
:
void
Returns
void
Reset
Reset
(
)
:
void
Returns
void
Set
Density
Set
Density
(
density
:
number
)
:
void
Parameters
density:
number
Returns
void
Set
Filter
Data
Set
Filter
Data
(
filter
:
b2Filter
)
:
void
Parameters
filter:
b2Filter
Returns
void
Set
Friction
Set
Friction
(
friction
:
number
)
:
void
Parameters
friction:
number
Returns
void
Set
Restitution
Set
Restitution
(
restitution
:
number
)
:
void
Parameters
restitution:
number
Returns
void
Set
Sensor
Set
Sensor
(
sensor
:
boolean
)
:
void
Parameters
sensor:
boolean
Returns
void
Set
User
Data
Set
User
Data
(
data
:
any
)
:
void
Parameters
data:
any
Returns
void
Synchronize
Proxies
Synchronize
Proxies
(
transform1
:
b2Transform
, transform2
:
b2Transform
, displacement
:
b2Vec2
)
:
void
Parameters
transform1:
b2Transform
transform2:
b2Transform
displacement:
b2Vec2
Returns
void
Test
Point
Test
Point
(
p
:
XY
)
:
boolean
Parameters
p:
XY
Returns
boolean
Touch
Proxies
Touch
Proxies
(
)
:
void
Returns
void
Globals
node_
modules\@cocos\box2d\src\dynamics
b2
Fixture
constructor
m_
body
m_
density
m_
filter
m_
friction
m_
is
Sensor
m_
next
m_
proxies
m_
restitution
m_
shape
m_
user
Data
mproxy
Count
Compute
Distance
Create
Proxies
Destroy
Proxies
Dump
GetAABB
Get
Body
Get
Density
Get
Filter
Data
Get
Friction
Get
Mass
Data
Get
Next
Get
Restitution
Get
Shape
Get
Type
Get
User
Data
Is
Sensor
Ray
Cast
Refilter
Reset
Set
Density
Set
Filter
Data
Set
Friction
Set
Restitution
Set
Sensor
Set
User
Data
Synchronize
Proxies
Test
Point
Touch
Proxies
Generated using
TypeDoc