API reference

getLocalScaleForAbsoluteScale Function

Computes the Scale that makes entity render at absoluteScale, in the active scale mode, without writing it. setAbsoluteScale writes it.
With TickTransformSystem.applyScale on, the scale its ancestors contribute is divided out; an axis an ancestor scales to zero keeps the value of absoluteScale. With it off, an entity renders at its own Scale, so this is absoluteScale.

Signature

fun getLocalScaleForAbsoluteScale(entity: Entity, absoluteScale: Vector3): Vector3

Parameters

entity: Entity The entity to scale.
absoluteScale: Vector3 The scale it should render at.

Returns