スケール
商品説明
このコンポーネントは、エンティティのスケーリング方法を制御します。
プロパティ一覧
Property | Type | 初期値 | 商品説明 |
---|---|---|---|
x | 番号 | 0 | X方向のスケーリング係数。 |
y | 番号 | 0 | Y方向のスケーリング係数。 |
z | 番号 | 0 | Z方向のスケーリング係数。 |
関数一覧
Get
Returns a read-only reference.
Example
ecs.Scale.get(world, component.eid)
Set
Ensures the component exists on the entity, then assigns the (optional) data to the component.
Example
ecs.Scale.set(world, component.eid, {
x: 0,
y: 0,
z: 0
})