2021-05-11 18:30:36 -07:00

79 lines
1.6 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[Planck.js API Doc](../README.md) › [Globals](../globals.md) › [ContactFeature](contactfeature.md)
# Class: ContactFeature
The features that intersect to form the contact point.
## Hierarchy
* **ContactFeature**
## Index
### Properties
* [indexA](contactfeature.md#indexa)
* [indexB](contactfeature.md#indexb)
* [typeA](contactfeature.md#typea)
* [typeB](contactfeature.md#typeb)
### Methods
* [set](contactfeature.md#set)
## Properties
### indexA
• **indexA**: *number*
*Defined in [src/collision/Manifold.ts:207](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L207)*
Feature index on shapeA
___
### indexB
• **indexB**: *number*
*Defined in [src/collision/Manifold.ts:211](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L211)*
Feature index on shapeB
___
### typeA
• **typeA**: *[ContactFeatureType](../enums/contactfeaturetype.md)*
*Defined in [src/collision/Manifold.ts:215](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L215)*
The feature type on shapeA
___
### typeB
• **typeB**: *[ContactFeatureType](../enums/contactfeaturetype.md)*
*Defined in [src/collision/Manifold.ts:219](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L219)*
The feature type on shapeB
## Methods
### set
▸ **set**(`o`: [ContactFeature](contactfeature.md)): *void*
*Defined in [src/collision/Manifold.ts:220](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L220)*
**Parameters:**
Name | Type |
------ | ------ |
`o` | [ContactFeature](contactfeature.md) |
**Returns:** *void*