Hey all,
So im attempting to get a footprint system working, where i spawn a piece of geometry for the foot on each step, and I've run into a small snag. My idea was to use a raycast to get the "hit point" of the ground for the position and the "normal" for the angle of the ground. This way, I could spawn the footprint where I need it, and rotate it to be at the same rotation as the ground that was stepped on.
However, when I do this, the footprint only marginally rotates, often in the wrong direction. Do I need to do something with the "normal" info in order to get rotation values out?
How do I use the "normal" information acquired from the raycast? I tried using a "Look At" action on the spawned with the "normal" being the transform, but it just seems to marginally rotate it in the wrong direction.
Any thoughts?
Im happy to post screen caps if i wasnt clear enough.
Thanks!
Sean