Hi, i’m trying to fix the Slope Bouncing of a character. I’m shooting an raycast down the character I would want to know the normal vector of the hit object. Is there a way to know the normal ?
by user 632418299711324161
Hi, i’m trying to fix the Slope Bouncing of a character. I’m shooting an raycast down the character I would want to know the normal vector of the hit object. Is there a way to know the normal ?
by user 632418299711324161
The result of your raycast is an array of intersections. Each intersection contains the hit point as well as the hit normal
Assuming you use this.context.physics.raycast which does a three.js raycast
If you do a collider raycast then there is a extra method which has both the hitpoint and the normal (this.context.physics.engine.raycastWithNormal - i think, just on the phone right now
)
Thank ou very much @Marcel_Wiessler1
: )
by user 632418299711324161