aovando26 / VR-Boat-Simulator

0 stars 0 forks source link

Object interaction (pickup/control boat) #2

Open aovando26 opened 1 month ago

aovando26 commented 1 month ago

Rope - Player Control: Only control is to tug/pull and let go. Visual Effect: Sail moves to center when pulling Effect on Boat: Dictates speed & partial direction of boat [direction influenced by lever too]. Extra Notes: Idea is that the boat moves based on wind pushing on sail.

Lever - Player Control: Player should be able to pull left/right.
Visual Effect: Rudder moves in opposite direction of lever pull left/right. Effect on Boat: Influence direction boat moves [Shares control with rope, does not influence speed]

aovando26 commented 1 month ago

Priority Replace the current input handling (which is keyboard-based) with VR controller inputs

aovando26 commented 1 month ago

By setting to Both we can access API

Image

aovando26 commented 1 month ago

Controlling from pulling the rope and lever (make the rope equate speed and the rudder direction, left and right)

aovando26 commented 1 month ago

interactable lever created to control direction of boat

aovando26 commented 1 month ago

A primitive lever was created, passing in the handle as collider:

Image

A hinge joint was also added have a min, max of (-45, 45)

Image