-
Notifications
You must be signed in to change notification settings - Fork 94
World Interaction
#World Interaction
##Tutorials
##Examples provided
1a. Physics Actor Pickup - This examples shows picking up Static Mesh Actors. Use the Grip Buttons to pickup and throw static meshes. To add your own simply add a mesh to the level and set it's simulate physics to be true.
1b. Blueprint Actor Pickup - This examples shows picking up Blueprint Actors. To enable picking up of blueprints they must implement the World Interactable and Pickupable Interfaces. It also shows overriding the default drop event with the green cube.
1c. Drawers - This examples shows an example of a simple set of drawers.
1d. Lever Pull - This example shows you how a lever object could be setup, grab the lever with the trigger and drag down to activate it.
1e. Slider - This example shows you how a slider object could be setup, slide the slider to the desired setting and push the button to activate.
1f. Cartridge - This example shows you how a cartridge object could be setup, Insert the cartridge into the slot to change the text.
##Enums
- Feedback Intensity - contains the intensities for the custom feedback effects
- Feedback Type - contains the types that the Feedback Function Library will allow us to use
##Function Libraries
Feedback Function Library - Contains helper functions for playing feedback effects
Functions:
- Play Feedback On Hand - Given the hand Feedback Type and Feedback Intensity will play a specific feedback effect
Segment Function Library - Contains helper functions for playing feedback effects
Functions:
- Find Min Max - Finds and returns the minimum and maximum slider segment given a segment array
- Find Segment with Value - Given a slider segment array, value and threshold will find a segment with the value within the threshold
- Find Closest Segment - Finds the closest slider segment to the specific value
##Interfaces
Pickupable Interface - Contains the functions to pickup an object
Functions:
- OnPickup - Triggered when this object is picked up
- OnDrop - Triggered when this object is dropped
- ShouldSnapToInteractor - Tells the interactor whether this object should snap to the interactor when picked up
World Interactabble Interface - Contains the functions for interacting with an object in the world
Functions:
- OnHover - Called whenever the interactor is hovered over the implementing object.
- OnUnhover - Called whenever an interactor is unhovered over the previously hovered object.
- OnUse - Called whenever an intercator has used the hovered object.
- OnDrag - Called every tick when the interactor is dragging this object.
- OnDragStart - Called when an interactor starts a drag on this object.
- OnDragEnd - Called when an interactor ends dragging on this object.
##Structures
Segment Struct - Contains all the variables to define a Slider Segment.
Variables:
- Value - The value of the segment.
- Name - The name of the segment.
##Helper Objects
Input Consumer - Allows the user to consume specific input at run time