-
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
Puck3DConfiguration
with a model, scale and rotation.Declaration
Parameters
model
The
gltf
model to use for the puck.modelScale
The amount to scale the model by.
modelRotation
The rotation of the model in euler angles
[lon, lat, z]
.modelOpacity
The opacity of the model used as the location puck
-
init(model:modelScale:modelRotation:modelOpacity:modelCastShadows:modelReceiveShadows:modelScaleMode:)
Initialize a
Puck3DConfiguration
with 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
model
The
gltf
model to use for the puck.modelScale
The amount to scale the model by.
modelRotation
The rotation of the model in euler angles
[lon, lat, z]
.modelOpacity
The opacity of the model used as the location puck
modelCastShadows
Enable/disable shadow casting for the puck model
modelReceiveShadows
Enable/disable shadow receiving for the puck model