Instance Method

scale(relativeTo:)

Gets the scale of an entity relative to the given entity.

Declaration

func scale(relativeTo referenceEntity: Entity?) -> SIMD3<Float>

Parameters

referenceEntity

The entity that defines a frame of reference.

Return Value

The scale of the entity relative to referenceEntity.

See Also

Scaling an Entity

var scale: SIMD3<Float>

The scale of the entity relative to its parent.

func setScale(SIMD3<Float>, relativeTo: Entity?)

Sets the scale factor of the entity relative to the given reference entity.