convert(normal:from:)
Converts a normal vector from the local space of a reference entity to the local space of the entity on which you called this method.
Declaration
@MainActor @preconcurrency func convert(normal: SIMD3<Float>, from referenceEntity: Entity?) -> SIMD3<Float>Parameters
- normal:
A vector perpendicular to a surface at a point, specified relative to specified relative to
referenceEntity. - referenceEntity:
The entity that defines a frame of reference. Set this to
nilto indicate world space.
Return Value
The normal vector given in the local space of the entity.