60 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2021-04-16 17:10:15 +02:00
[Planck.js API Doc](../README.md) › [Globals](../globals.md) › [ContactID](contactid.md)
# Class: ContactID
Contact ids to facilitate warm starting.
## Hierarchy
* **ContactID**
## Index
### Properties
* [cf](contactid.md#cf)
### Accessors
* [key](contactid.md#key)
### Methods
* [set](contactid.md#set)
## Properties
### cf
• **cf**: *[ContactFeature](contactfeature.md)* = new ContactFeature()
2021-04-16 17:10:15 +02:00
2021-05-11 18:30:36 -07:00
*Defined in [src/collision/Manifold.ts:185](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L185)*
2021-04-16 17:10:15 +02:00
## Accessors
### key
• **get key**(): *number*
2021-05-11 18:30:36 -07:00
*Defined in [src/collision/Manifold.ts:190](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L190)*
2021-04-16 17:10:15 +02:00
Used to quickly compare contact ids.
**Returns:** *number*
## Methods
### set
2021-05-11 18:30:36 -07:00
▸ **set**(`o`: [ContactID](contactid.md)): *void*
2021-04-16 17:10:15 +02:00
2021-05-11 18:30:36 -07:00
*Defined in [src/collision/Manifold.ts:194](https://github.com/shakiba/planck.js/blob/acc3bd8/src/collision/Manifold.ts#L194)*
2021-04-16 17:10:15 +02:00
**Parameters:**
Name | Type |
------ | ------ |
2021-05-11 18:30:36 -07:00
`o` | [ContactID](contactid.md) |
2021-04-16 17:10:15 +02:00
**Returns:** *void*