C# Класс BEPUphysics.CollisionTests.Contact

Handles information about a contact point during a collision between two bodies.
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
Id int
Normal Vector3
PenetrationDepth float
Position Vector3

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

Метод Описание
Setup ( ContactData &candidate ) : void

Sets upt he contact with new information.

ToString ( ) : string

Outputs the position, normal, and depth information of the contact into a string.

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

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

Sets upt he contact with new information.
public Setup ( ContactData &candidate ) : void
candidate ContactData Contact data to initialize the contact with.
Результат void

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

Outputs the position, normal, and depth information of the contact into a string.
public ToString ( ) : string
Результат string

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

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

Identifier used to link contact data with existing contacts and categorize members of a manifold.
public int Id
Результат int

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

Normal direction of the surface at the contact point.
public Vector3 Normal
Результат Vector3

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

Amount of penetration between the two objects.
public float PenetrationDepth
Результат float

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

Position of the contact point.
public Vector3 Position
Результат Vector3