CollisionComponent - acrimi/Raven GitHub Wiki
The CollisionComponent
controls whether or not an entity should be treated as a collision object. Collision checks against other entities and against the map environment can be configured independently.
Configuration
When used inside the components
block, the initial state of the component can be configured with the following parameters:
Key | Type | Description |
---|---|---|
environmentSolidity | boolean | True if the entity should check for collisions against tile colliders from the tile map. Defaults to false . |
entitySolidity | boolean | True if the entity should check for collisions against other entities. Defaults to false . |
Example:
"CollisionComponent": {
"environmentSolidity": true,
"entitySolidity": true
}
Properties
This component has no exposed properties