Cow_Life_Sim_RPG/Objects/Beach/Ball/SealBall.gd

10 lines
213 B
GDScript

extends Ball
var spinSpeed = 3
func _process(delta):
$SubViewport/Spatial/CharacterBody3D/MeshInstance3D.rotation.z += spinSpeed * delta
var texture = $SubViewport.get_texture()
$Sprite2D.texture = texture