C# Класс Box2D.Common.Settings

Global tuning constants based on MKS units and various integer maximums (vertices per shape, pairs, etc.).
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
ANGULAR_SLEEP_TOLERANCE float
ANGULAR_SLOP float
MAX_ANGULAR_CORRECTION float
MAX_ROTATION float
MAX_TRANSLATION_SQUARED float
MaxRotationSquared float
PI float
POLYGON_RADIUS float
SINCOS_LUT_LENGTH int

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

Метод Описание
MixFriction ( float friction1, float friction2 ) : float

Friction mixing law. Feel free to customize this. TODO djm: add customization

MixRestitution ( float restitution1, float restitution2 ) : float

Restitution mixing law. Feel free to customize this. TODO djm: add customization

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

MixFriction() публичный статический Метод

Friction mixing law. Feel free to customize this. TODO djm: add customization
public static MixFriction ( float friction1, float friction2 ) : float
friction1 float
friction2 float
Результат float

MixRestitution() публичный статический Метод

Restitution mixing law. Feel free to customize this. TODO djm: add customization
public static MixRestitution ( float restitution1, float restitution2 ) : float
restitution1 float
restitution2 float
Результат float

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

ANGULAR_SLEEP_TOLERANCE публичное статическое свойство

A body cannot sleep if its angular velocity is above this tolerance.
public static float ANGULAR_SLEEP_TOLERANCE
Результат float

ANGULAR_SLOP публичное статическое свойство

A small angle used as a collision and constraint tolerance. Usually it is chosen to be numerically significant, but visually insignificant.
public static float ANGULAR_SLOP
Результат float

MAX_ANGULAR_CORRECTION публичное статическое свойство

The maximum angular position correction used when solving constraints. This helps to prevent overshoot.
public static float MAX_ANGULAR_CORRECTION
Результат float

MAX_ROTATION публичное статическое свойство

The maximum angular velocity of a body. This limit is very large and is used to prevent numerical problems. You shouldn't need to adjust this.
public static float MAX_ROTATION
Результат float

MAX_TRANSLATION_SQUARED публичное статическое свойство

public static float MAX_TRANSLATION_SQUARED
Результат float

MaxRotationSquared публичное статическое свойство

public static float MaxRotationSquared
Результат float

PI публичное статическое свойство

Pi
public static float PI
Результат float

POLYGON_RADIUS публичное статическое свойство

The radius of the polygon/edge shape skin. This should not be modified. Making this smaller means polygons will have and insufficient for continuous collision. Making it larger may create artifacts for vertex collision.
public static float POLYGON_RADIUS
Результат float

SINCOS_LUT_LENGTH публичное статическое свойство

public static int SINCOS_LUT_LENGTH
Результат int