level that is constantly rotating?
Asked Answered
O

2

0

I have several levels with nodes that rotate constantly (not the whole level but certain nodes in it as the tileset, obstacles, main parts of the level etc), after all the player, camera etc is not included in the same (ie not rotate), and I have problems because the player when he jumps and is glued to the tileset does not move up but gives a small movement forward, Likewise if the player sticks to the ceiling at a certain angle does not fall and touches the walls in another I can not move forward or backward even if I run a dash, (the player can jump in the air infinitely, also nowhere I told the player to detect the ground and its speed of jumping and movement is greater than the speed of rotation of tileset and other nodes), sorry for any error in the syntax of this message I am translated. ............... and also sorry for the tremendous text that I just wrote seems like a testament.
line in level rotation script:
if nivel_actual > 45:
get_tree().get_nodes_in_group("zona_4")[0].get_node("cuerpo").rotation_degrees=get_tree().get_nodes_in_group("zona_4")[0].get_node("cuerpo").rotation_degrees+0.05

Outland answered 5/8, 2023 at 2:2 Comment(0)
S
0

I did not really understand your problem, maybe you can describe with more info.
More code related, or a picture/gif/video or even a paint creation.
I have a level that rotate around the player, its a $Mesh.
But mine player walk on stable floor without interacting with rotate elements.

@onready var bubble := bubble_mesh as MeshInstance3D
var bubble_speed := 0.2
func _process(_delta: float) -> void:
	bubble.rotate_x(deg_to_rad(bubble_speed))
Simmon answered 5/8, 2023 at 3:28 Comment(0)
O
0

I found out that it is the fault of the physics of the motor, so I have an idea of how to solve it, thanks for your interest.

Outland answered 6/8, 2023 at 2:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.