#Making player tilt/lean while moving

1 messages · Page 1 of 1 (latest)

stark wasp
#

It's in a brackeys video, the name is "how to make your game look good

Link : https://youtu.be/nvbQ9_bzx1k
Minute 9:13 secs

Let's use some simple tricks to make a game look awesome!
► Download Core for free at: https://bit.ly/Core_Brackeys
► Join the The GGJ + Core Game Jam: https://itch.io/jam/ggj-plus-core-game-jam
► Join the Core Discord and check out their events at https://discord.gg/core-creators

● Andrew Price (Blender Guru): https://www.youtube.com/user/An...

▶ Play video
sturdy gazelle
#

Not fully sure how he may have setup his exact character controller, though one way you could do this is have your "graphics" (mesh renderer and filter) on a child object of your character, separate from your "physics" (collider and rigidbody) so collision is unaffected by the visuals, but you can still animate the visuals as much as youd like, for example how I would setup something like this:

Player (parent, holds all your scripts)
  Graphics (child of Player, holds your Renderer components)
  Physics (child of Player, holds your Collider and Rigidbody components OR CharacterController component if you use that instead)

You can then animate the "Graphics" child, and later if you wanted to, you could add more children in a similar way to handle things like particle effects or a audio pool for example, but there are many ways to build a character, this is just one of those ways