2d character in a 3d world. (how to freeze rotation)
edited January 2020
Hiya, I am trying to freeze the rotation of my 2.5d character when moving (on XZ/3d). if u move now the you see the side of the 2d sprite. Is there a option for this in ork? Thanks alot
Post edited by Anoo on
Do you use nav mesh agent on your sprite? I think you could just put rotation speed in nav mesh agent at 0.
Hi JMR, I do not use a nav mesh agent. I use brownpants (from the tutorial) and put my custom player prefab inside the (brownpants) gameobject. The custom player prefab consists out of diffrent sprites and bones/2d IK. I tried putting the navmesh agent on brownpants and on the player prefab, then put the angular speed at 0 but that did not help.
Change how the player moves in ORK setting to navmesh agent. It's in the foremost left tab in ORK. You also need to bake navmesh on the terrain the player moves on.
You can also change player prefab in combatant setting, you don't need to child it to the one used in example project.
I found the setting under player contols > player control type; mouse. Can this also be achieved using player control type; button?
And thanks for the combatant prefab tip. I changed it!
player controls will move the player into a direction by rotating it. Something you could do is have the sprite be a child object and always rotate it to the camera using a small script. That'd also allow you to make use of the
Auto Rotation Parameters
when using Mecanim animations, where you can pass the rotation as a 4- or 8-directional value.
Otherwise, youll have to use a
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
If you're enjoying my products, updates and support, please consider supporting me on
It looks like you're new here. If you want to get involved, click one of these buttons!
Makinom Tips, Tricks & Tutorials
ORK Tips, Tricks & Tutorials
Cinemachine with ork
on May 7
Using abilities outside of combat
on May 7
How does "Block Player Control" Effect the Movement Script?
on May 7
[Released] - Squeaky Clean - Horror game
on May 6
Who's Online (6)
© 2015 Gaming is Love e.U.