Instance Method

orientation(relativeTo:)

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

Declaration

func orientation(relativeTo referenceEntity: Entity?) -> simd_quatf

Parameters

referenceEntity

The entity that defines a frame of reference. Set this to nil to indicate world space.

Return Value

The orientation of the entity relative to referenceEntity.

See Also

Rotating an Entity

var orientation: simd_quatf

The rotation of the entity relative to its parent.

func setOrientation(simd_quatf, relativeTo: Entity?)

Sets the orientation of the entity relative to the given reference entity.