Skip to content

add a way of getting the "impact normal" from a shape cast hit. #663

Open
@atornity

Description

@atornity

The hit result struct in unreal engine has this thing called ImpactNormal which is the furhest (from the sweep direction) face normal on the hit collider. When you hit a corner (on a cube for example) and the cast shape is a sphere, then the hit normal will point towards the sphere, but sometimes I want the normal of the closest face.

In particular, I need this for floor detection and stair stepping for a character controller I'm working on.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions