I’m making a city builder game and I want my buildings to “lag” when moving them around.
Here is a diagram of my goal:
I have tried to use ‘find look at rotation’ but it makes the object rotate in all different ways. I know I need to ease the rotation, which I was trying to do but nothing I have tried actually gets the rotation angles correct.
Any suggestions?
Everynone
(Everynone)
July 23, 2023, 8:53am
2
Here’s a couple examples:
It’s hard to imagine how you want it to work. I can think of several ways of making a drone controller. Are we even getting physics involved here or you want to fake the rotation?
Try this, see if you like it:
[image]
You can do -45 to inverse it. Again, this is just a mere stub and more nuanced scrip is needed for a more plausible looking leaning. Multiplying the clamp by (or replacing it with) a curve may be enough.
If you need a proper, realistic & physically simulated drone movement,…
It does not need to be a Pawn, but you will need obtain velocity and use it to derive direction.
Thank you so much! I added a float curve after the clamp to smooth it out and it’s perfect.
system
(system)
Closed
August 22, 2023, 5:54pm
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.