CylinderGeometry
Description
Ce composant établit la géométrie d'une entité.
Propriétés
Propriété | Type | Défaut | Description |
---|---|---|---|
rayon | nombre | 1 | Rayon du cylindre. |
hauteur | nombre | 1 | Hauteur du cylindre. |
Fonctions
Get
Returns a read-only reference.
Example
ecs.CylinderGeometry.get(world, component.eid)
Set
Ensures the component exists on the entity, then assigns the (optional) data to the component.
Example
ecs.CylinderGeometry.set(world, component.eid, {
radius: 1,
height: 1
})