Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Any guides to rotating a character to the terrain?

Asked by 4 years ago
Edited 4 years ago

I know it involves inverse kinematics , but I'm looking for a more simplified or in depth explanation on how this works.

Examples:

https://gyazo.com/a7165075651484136e0aea3deaa80cc2.gif

https://devforum.roblox.com/t/release-custom-character-controller/172696

I've tried searching any posts about it, but haven't found any anywhere.

0
00f............. you could try putting a part on the terrain and rotating to the part.. greatneil80 2647 — 4y
0
I would just try, to go through the module and when I dont understand a certain part of it, look it up on the web aka.("The Inter-Webs"). Amazing thing. Farsalis 369 — 4y
0
Not sure where you got the idea that inverse kinematics involved, it's not related. You orient a character to a surface by raycasting a the surface to get the surface normal, and using that as a local up direction. EmilyBendsSpace 1025 — 4y
0
I know how raycasting works, i've used it to detect the material of the terrain and what it hits, I've just never heard rays being used to get the terrain's plane. I'll have to look more into it then. Chikadeen 15 — 4y

Answer this question