feat(studio): Add Quick Start Guide, Viewport HUD, 3D raycast picking, quick add toolbar, and starter Baseplate
checkpoint / checkpoint (push) Successful in 6m20s
checkpoint / checkpoint (push) Successful in 6m20s
This commit is contained in:
@@ -90,7 +90,8 @@ func place_object(catalog_id: String, position: Vector3,
|
||||
|
||||
func place_object_stacked(catalog_id: String, target_object_id: String = "",
|
||||
hit_point: Vector3 = Vector3.ZERO, surface_normal: Vector3 = Vector3(0, 0, 1),
|
||||
elevation_offset: float = 0.0, align_to_normal: bool = false) -> String:
|
||||
elevation_offset: float = 0.0, align_to_normal: bool = false,
|
||||
extra_properties: Dictionary = {}) -> String:
|
||||
var target_obj: ChunkDataDecoder.WorldObjectData = null
|
||||
if target_object_id != "":
|
||||
target_obj = model.find_object(target_object_id)
|
||||
@@ -103,6 +104,7 @@ func place_object_stacked(catalog_id: String, target_object_id: String = "",
|
||||
props["stacked_on"] = stack_info["parent_id"]
|
||||
if elevation_offset != 0.0:
|
||||
props["elevation_offset"] = elevation_offset
|
||||
props.merge(extra_properties)
|
||||
|
||||
return place_object(catalog_id, stack_info["position"], stack_info["rotation"], Vector3.ONE, props)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user