-
The model to use as the locaiton puck
Declaration
Swift
public var model: Model -
The scale of the model.
Declaration
Swift
public var modelScale: Value<[Double]>? -
The rotation of the model in euler angles [lon, lat, z].
Declaration
Swift
public var modelRotation: Value<[Double]>? -
The opacity of the model used as the location puck
Declaration
Swift
public var modelOpacity: Value<Double>? -
Enable/disable shadow casting for the puck model
Declaration
Swift
@_documentation(visibility: public) @_spi(Experimental) public var modelCastShadows: Value<Bool>? -
Enable/disable shadow receiving for the puck model
Declaration
Swift
@_documentation(visibility: public) @_spi(Experimental) public var modelReceiveShadows: Value<Bool>? -
Defines scaling mode. Only applies to location-indicator type layers. Default to
viewport.Declaration
Swift
@_documentation(visibility: public) @_spi(Experimental) public var modelScaleMode: Value<ModelScaleMode>? -
Initialize a
Puck3DConfigurationwith a model, scale and rotation.Declaration
Parameters
modelThe
gltfmodel to use for the puck.modelScaleThe amount to scale the model by.
modelRotationThe rotation of the model in euler angles
[lon, lat, z].modelOpacityThe opacity of the model used as the location puck
-
init(model:modelScale:modelRotation:modelOpacity:modelCastShadows:modelReceiveShadows:modelScaleMode:)Initialize a
Puck3DConfigurationwith a model, scale, rotation and an parameter to control shadow casting.Declaration
Swift
@_documentation(visibility: public) @_spi(Experimental) public init(model: Model, modelScale: Value<[Double]>? = nil, modelRotation: Value<[Double]>? = nil, modelOpacity: Value<Double>? = nil, modelCastShadows: Value<Bool>? = nil, modelReceiveShadows: Value<Bool>? = nil, modelScaleMode: Value<ModelScaleMode>? = nil)Parameters
modelThe
gltfmodel to use for the puck.modelScaleThe amount to scale the model by.
modelRotationThe rotation of the model in euler angles
[lon, lat, z].modelOpacityThe opacity of the model used as the location puck
modelCastShadowsEnable/disable shadow casting for the puck model
modelReceiveShadowsEnable/disable shadow receiving for the puck model
Puck3DConfiguration Structure Reference