Search
Setup for Free
C
C#
•
3y ago
elmish
❔ 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
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,165
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
E
elmish
OP
•
4/27/23, 12:04 PM
and i want to be able to change the speed when wanted
K
kocha
•
4/27/23, 12:10 PM
What have you tried already
?
E
elmish
OP
•
4/27/23, 12:10 PM
nothing
E
elmish
OP
•
4/27/23, 12:11 PM
every google result is different
H
HimmDawg
•
4/27/23, 12:12 PM
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
?
E
elmish
OP
•
4/27/23, 12:12 PM
one axis around the center
E
elmish
OP
•
4/27/23, 12:13 PM
Y axis i think
K
kocha
•
4/27/23, 12:14 PM
position an empty gameobject in the center
, make the rotating object its child and rotate the emptygameobject
.
K
kocha
•
4/27/23, 12:15 PM
you can chose the otation speed yourself but you need to multiply it by time
.deltatime
E
elmish
OP
•
4/27/23, 12:16 PM
i thought of that and did all of it already but how do i rotate it
K
kocha
•
4/27/23, 12:16 PM
https://docs.unity3d.com/ScriptReference/Transform.Rotate.html
E
elmish
OP
•
4/27/23, 12:18 PM
isnt transform
.rotate instnat
?
E
elmish
OP
•
4/27/23, 12:18 PM
instant
?
K
kocha
•
4/27/23, 12:19 PM
what do you mean by instant
?
E
elmish
OP
•
4/27/23, 12:19 PM
it instantly moves the object
K
kocha
•
4/27/23, 12:19 PM
you need to call it in the update function
K
kocha
•
4/27/23, 12:19 PM
and rotate by a small amount
E
elmish
OP
•
4/27/23, 12:26 PM
it spins
!
H
HimmDawg
•
4/27/23, 12:26 PM
E
elmish
OP
•
4/27/23, 12:44 PM
i may or may not have made a particle accelerator
A
Accord
•
4/28/23, 1:09 PM
Was this issue resolved
? If so
, run
/close
/close
otherwise I will mark this as stale and this post will be archived until there is new activity
.
Similar Threads
❔ making something wait in unity script
C
C# / help
3y ago
Unity Script Communication
C
C# / help
3y ago
❔ error attaching script (unity)
C
C# / help
3y ago
Player death script(fixed)
C
C# / help
13mo ago