Drawing - Modifying Pawn
Next we need to call the draw function which I did through the MotionControllerPawn. Firstly we feed the event trick into a gate along with what input you want to start drawing which for me was trigger right. Next the gate would exit onto a line trace by channel function and the start value would come from the world location of the right controller and the end value would come from getting the forward vector multiplying it by a value of choice and then adding it to the world location of the controller. Lastly we set the trace complex to true so we can detect when and where we are drawing on the surface.
Next, we need to call the drawing function which we get the out hit produced by the line trace function, break it and then get the hit actor and cast it to the surface actor, next we using the cast we call the draw function we created in the actor. Lastly we feed the function a size of choice and the location which we get by once again getting the out hit from the line trace function and finding the collision UV which we feed as the location.
VR Project Blog
Status | In development |
Category | Other |
Author | Razorsx |
Tags | Virtual Reality (VR) |
More posts
- Wrist Menu - ButtonsJan 19, 2023
- Wrist Menu - Attaching to HandJan 19, 2023
- Wrist Menu - DesignJan 18, 2023
- Drawing - Draw FunctionJan 18, 2023
- Drawing - Construction ScriptJan 18, 2023
- Drawing SurfacesJan 18, 2023
- Ladder Mechanic - Modifying MotionControllerPawnJan 18, 2023
- Ladder Mechanic - Modifying VR HandsJan 18, 2023
- Ladder Mechanic - Modifying Pickup CubeJan 18, 2023
Leave a comment
Log in with itch.io to leave a comment.