❔ making objects rotate at a fixed speed (unity script)
im trying to create 2 objects one being the center and the other one rotating around it in a 3D world
16 Replies
and i want to be able to change the speed when wanted
What have you tried already?
nothing
every google result is different
So what kind of rotation do you want? Should it just rotate around the center on one axis or should the object be able to change it?
one axis around the center
Y axis i think
position an empty gameobject in the center, make the rotating object its child and rotate the emptygameobject.
you can chose the otation speed yourself but you need to multiply it by time.deltatime
i thought of that and did all of it already but how do i rotate it
isnt transform.rotate instnat?
instant?
what do you mean by instant?
it instantly moves the object
you need to call it in the update function
and rotate by a small amount
it spins!
<a:hamispin_fast:1080674931198672916>
i may or may not have made a particle accelerator
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.