public final class FixtureDef extends Object
| Constructor and Description |
|---|
FixtureDef() |
| Modifier and Type | Method and Description |
|---|---|
FixtureDef |
density(float density) |
FixtureDef |
filter(Filter filter) |
FixtureDef |
friction(float friction) |
float |
getDensity()
The density, usually in kg/m^2
|
Filter |
getFilter() |
float |
getFriction()
The friction coefficient, usually in the range [0,1].
|
float |
getRestitution()
The restitution (elasticity) usually in the range [0,1].
|
Shape |
getShape()
The shape, this must be set.
|
Object |
getUserData()
Use this to store application specific fixture data.
|
boolean |
isSensor()
A sensor shape collects contact information but never generates a collision response.
|
FixtureDef |
restitution(float restitution) |
FixtureDef |
sensor(boolean isSensor) |
void |
setDensity(float density)
The density, usually in kg/m^2
|
void |
setFilter(Filter filter)
Set contact filtering data.
|
void |
setFriction(float friction)
The friction coefficient, usually in the range [0,1].
|
void |
setRestitution(float restitution)
The restitution (elasticity) usually in the range [0,1].
|
void |
setSensor(boolean isSensor)
A sensor shape collects contact information but never generates a collision response.
|
void |
setShape(Shape shape)
The shape, this must be set.
|
void |
setUserData(Object userData)
Use this to store application specific fixture data.
|
FixtureDef |
shape(Shape shape) |
FixtureDef |
userData(Object userData) |
public Shape getShape()
public void setShape(Shape shape)
public Object getUserData()
public void setUserData(Object userData)
public float getFriction()
public void setFriction(float friction)
public float getRestitution()
public void setRestitution(float restitution)
public float getDensity()
public void setDensity(float density)
public boolean isSensor()
public void setSensor(boolean isSensor)
public Filter getFilter()
public void setFilter(Filter filter)
filter - filterpublic FixtureDef friction(float friction)
public FixtureDef restitution(float restitution)
public FixtureDef density(float density)
public FixtureDef filter(Filter filter)
public FixtureDef shape(Shape shape)
public FixtureDef sensor(boolean isSensor)
public FixtureDef userData(Object userData)
Copyright © 2017. All rights reserved.