diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2025-01-14 14:38:52 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2025-01-14 14:38:52 +0100 |
commit | e8f03c4d6a94aa16b3587bdce525cf0cf7c6c6c3 (patch) | |
tree | d8d5a78a0872b86c3b40089e465120883669542b /extractor/rsm_format.gd | |
parent | b75cc72c4e10bd652330b6d2bd99f3fd9129a3b3 (diff) |
next commit
Diffstat (limited to 'extractor/rsm_format.gd')
-rw-r--r-- | extractor/rsm_format.gd | 11 |
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) |