VR Telekinesis along path Documentation
Features
This asset creates a path that an object will follow according to the movements of your VR controller.
It contains two blueprints:
Architecture
Distant spline
Proximity spline
VRSplineMove
VRSplineMoveProximity
Architecture
Distant spline
Proximity spline
MotionControllerPawn
PickupActorInterface
BP_MotionController
VRSplineMove
VRSplineMoveProximity
MotionControllerPawn
Motion controller trigger pressed
Draw a line trace, if it hit a VR spline move, communicate with the BP
Get the controller position
BP_MotionController
Get the controller position
Motion controller grip pressed
How to
Simply drag and drop the BP in the level
Settings
Caution : The result may vary depending on the “Update transform along spline” setting (because if you change the rotation and then put the setting to “Location and rotation”, the offset will be relative to the spline point).
Settings
Settings
Movement threshold= 0.2
Movement threshold= 0.8
Spline
Controller direction
The mesh will move
The mesh won’t move
Spline
Controller direction
The mesh will move
The mesh won’t move
Settings
Most of those settings are applied in the construction script.
Creating the spline
DO
DON’T
Your path must be curved steadily so that the movement to be made is not too hard for the player.
Blendable materials
If you want to make your own blendable material, reproduce the set up below.
Material A
Material B
Check “use material attributes”
Parameter name : Blend Alpha
Default value : 0.0
Problems with the movement?
The line of sight hit a distant spline but the mesh don’t move : Check your collision settings
How to migrate the feature in my game?
Reproduce exactly the following nodes, variables, functions of the BPs:
Migrate the spline BP, and the enumerations.
Some “Cast to” nodes will be broken, you have to repair each.
Thanks!
Combine this asset with the VR Platformer template asset to improve the gameplay!