Animated Rocket

I got all the blender classes, so I wanted to mess around about with my rocket. I’ll probably do the same with the scenes when I get to it.

Added an animation tree to rotate the rocket:

A bit of code to rotate the particles:

func set_animation(location : Vector2) -> void:
	animation_tree.set("parameters/blend_position", location)
	if location.x == 0 and location.y == 0:
		booster_particles.rotate_x(0)
		booster_particles.emitting = false
	else:
		booster_particles.emitting = true
	if location.x == -1:
		booster_particles.rotate_x(-15)
	if location.x == 1:
		booster_particles.rotate_x(15)
	
3 Likes

Privacy & Terms