concinnity-core 0.18.64

Runtime vocabulary for the Concinnity engine: GPU layouts, ECS components, registry, CPU kernels
Documentation
1
2
3
4
5
6
7
8
9
10
11
// src/components/collider.rs

use crate::components::PropCollider;

/// Collision volume attached to an entity, in local space scaled by the
/// entity's transform.
///
/// Runtime-only. Carries the same shape description a `Prop` declares through
/// its `collider` field.
#[derive(Debug, Clone, Default)]
pub struct Collider(pub PropCollider);