C# Класс Box2D.Dynamics.FixtureDef

A fixture definition is used to create a fixture. This class defines an abstract fixture definition. You can reuse fixture definitions safely.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Density float
Filter Filter
Friction float
IsSensor bool
Restitution float
Shape Box2D.Collision.Shapes.Shape
UserData object

Открытые методы

Метод Описание
FixtureDef ( ) : Box2D.Collision.Shapes

Описание методов

FixtureDef() публичный Метод

public FixtureDef ( ) : Box2D.Collision.Shapes
Результат Box2D.Collision.Shapes

Описание свойств

Density публичное свойство

The density, usually in kg/m^2
public float Density
Результат float

Filter публичное свойство

Contact filtering data
public Filter,Box2D.Dynamics Filter
Результат Filter

Friction публичное свойство

The friction coefficient, usually in the range [0,1].
public float Friction
Результат float

IsSensor публичное свойство

A sensor shape collects contact information but never generates a collision response.
public bool IsSensor
Результат bool

Restitution публичное свойство

The restitution (elasticity) usually in the range [0,1].
public float Restitution
Результат float

Shape публичное свойство

The shape, this must be set. The shape will be cloned, so you can create the shape on the stack.
public Shape,Box2D.Collision.Shapes Shape
Результат Box2D.Collision.Shapes.Shape

UserData публичное свойство

Use this to store application specific fixture data.
public object UserData
Результат object