@spacecloud said:
impact.rotate_x(-PI / 2)
strange, that doesn't work for me.but doesn't matter the code does
im trying to set the rotation of the decal in the decal script , but it doesn't do anything. why is that?
func _ready():
random.randomize()
add_to_group("ignore")
var impactparticles = particles.instantiate()
self.add_child(impactparticles)
impactparticles.global_transform.origin = self.global_transform.origin
impactparticles.emitting = true
playImpactSound()
var size = random.randf_range(minExtends,maxExtends)
self.extents = Vector3(size,size,size)
self.rotate_x(deg2rad(random.randf_range(0.0,360.0)))