Move player forward In their direction
-
Im trying to make a raycasting system, and i need to move a projectile out of a wall from where it came frim
@IAmPotat The Raycast Test behavior outputs a
normalfield. This is the angle that the ray would travel if it were to reflect. You can use this to rotate an object to that angle, and then use a Calculate Direction behavior to calculate thex_vectorandy_vectorfrom the center of the object to where it's facing. You can use those values to determine how much your object moves when a ray has intersected with an object.If you need help on how to use the behavior, this video has step-by-step examples:
-
I IAmPotat marked this topic as a question on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login