Skip to main content
7 events
when toggle format what by license comment
Feb 28, 2022 at 14:27 comment added DMGregory Here's how I've managed a similar task in the past.
Feb 28, 2022 at 14:21 comment added Hree @DMGregory I think this problem caused from getting projected vector. i want my character move along with wall so i use projectOnPlane, but it maybe return longer value so my character go through the wall. what should i do to get exactly same moveAmount when projected?
Feb 28, 2022 at 14:21 history edited Hree CC BY-SA 4.0
Added projected part
Feb 28, 2022 at 13:42 comment added Hree @DMGregory I added code to get horMoveAmount. my character move by arrow key and rotate to move direction.
Feb 28, 2022 at 13:41 history edited Hree CC BY-SA 4.0
added 1035 characters in body
Feb 28, 2022 at 12:09 comment added DMGregory Your CapsuleCast math looks correct (other than an unnecessary Abs — a magnitude will never give you a negative number). I think the problem may arise in how you compute horMoveAmount or how you move your capsule. Try showing us a Minimal Complete Verifiable Example: all of the code or scene setup steps we'd need to follow to reproduce the whole problem in a new, empty project.
Feb 28, 2022 at 10:39 history asked Hree CC BY-SA 4.0