Build validated industrial submarine cockpit
This commit is contained in:
1 parent
dffe790926
commit
fdebbafeae
19 files changed
+906
-277
No files matched your search
@@ -46,6 +46,28 @@ static func add_cylinder(
|
||||
return instance
|
||||
|
||||
|
||||
static func add_cylinder_between(
|
||||
node_name: String,
|
||||
parent: Node3D,
|
||||
start: Vector3,
|
||||
end: Vector3,
|
||||
radius: float,
|
||||
material: Material
|
||||
) -> MeshInstance3D:
|
||||
var direction := end - start
|
||||
var instance := add_cylinder(
|
||||
node_name,
|
||||
parent,
|
||||
(start + end) * 0.5,
|
||||
radius,
|
||||
direction.length(),
|
||||
material
|
||||
)
|
||||
if not direction.is_zero_approx():
|
||||
instance.quaternion = Quaternion(Vector3.UP, direction.normalized())
|
||||
return instance
|
||||
|
||||
|
||||
static func add_sphere(
|
||||
node_name: String,
|
||||
parent: Node3D,
|
||||
|
||||
Reference in new issue
Block a user