summaryrefslogtreecommitdiff
path: root/extractor/rsm_format.gd
diff options
context:
space:
mode:
Diffstat (limited to 'extractor/rsm_format.gd')
-rw-r--r--extractor/rsm_format.gd11
1 files changed, 6 insertions, 5 deletions
diff --git a/extractor/rsm_format.gd b/extractor/rsm_format.gd
index 2eccbd2..7eb41f0 100644
--- a/extractor/rsm_format.gd
+++ b/extractor/rsm_format.gd
@@ -178,6 +178,7 @@ class ModelNode:
## Byte Type: f32 [br]
## Byte Length: 4 [br]
## Versions: [<2.2]
+ ## Type: Radiants
var rotation_angle: float
## Byte Type: f32 [br]
@@ -361,7 +362,7 @@ class ModelNode:
node.translate(translation_2)
if rotation_axis != Vector3.ZERO:
- node.rotate(rotation_axis, rotation_angle)
+ node.rotate_object_local(rotation_axis, rotation_angle)
node.scale = scale
@@ -373,11 +374,11 @@ class ModelNode:
var face := faces[idx]
surface_tool.add_triangle_fan(
- PackedVector3Array(face.vertex_position_indices.map(func(idx):
- return vertex_positions[idx])
+ PackedVector3Array(face.vertex_position_indices.map(func(item_idx):
+ return vertex_positions[item_idx])
),
- PackedVector2Array(face.texture_coordinate_indices.map(func(idx):
- return texture_coordinates[idx].coordinates)
+ PackedVector2Array(face.texture_coordinate_indices.map(func(item_idx):
+ return texture_coordinates[item_idx].coordinates)
)
)
surface_tool.commit(mesh)