Announcement

Collapse
No announcement yet.

Pickup and rotate actor

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Pickup and rotate actor

    I have seen and followed several examples on how to pickup an actor and rotate it in front of the camera to inspect it. I have created my own version to allow a given actor the ability to be picked up and rotated. I want it to be an intuitive and seamless experience whereby the player clicks the object with the LMB, it moves to a point in front of the camera, you rotate it, and then click it with the LMB to return it to it's original place. The First Person Character BP has the Linetrace to trigger the Blueprint interface and activate the Actor to do it's thing, and I have mouse input mappings with an override giving control to the actor.

    I have everything working except it's ignoring the LMB to return. The "Put back" portion doesn't work.

    First Person Character mouse input

    Click image for larger version

Name:	PlayerBP Mouse input.jpg
Views:	1
Size:	66.1 KB
ID:	1215990

    Everything after here is in the Master Pickup Actor

    Click image for larger version

Name:	Take control.jpg
Views:	1
Size:	61.8 KB
ID:	1215991Click image for larger version

Name:	Move to infront of camera.jpg
Views:	1
Size:	136.8 KB
ID:	1215992Click image for larger version

Name:	Rotate.jpg
Views:	1
Size:	104.1 KB
ID:	1215993

    This part doesn't work

    Click image for larger version

Name:	Put back.jpg
Views:	1
Size:	62.1 KB
ID:	1215994

    #2
    [MENTION=133297]GaLew[/MENTION] Or.... you could just purchase this: https://www.unrealengine.com/marketp...mine-interface and take that functionality and place it into your existing Level. This system however does not 'move' the object through space because of physics concerns (something in the way, something ON TOP of the object that would fall to the floor if removed.. etc.) it does it a bit differently.
    Now available on the UE Marketplace: Inventory Examine Interface -- and -- Fifty Knobs and Dials -- and -- Thirty Buttons Pack -- and --Kitchen and Bath Handles for Arch Vis -- and -- Chat Bot A.I. Simulator

    Comment


      #3
      Shameless plus ... Anyway, I figured it out. I realized the LMB in the Character BP was still firing so all I had to do was split it.

      Click image for larger version

Name:	LMB Linetrace.jpg
Views:	1
Size:	87.0 KB
ID:	1126006

      And then in the Actor BP extend the tick to the boolean where the LMB will break the tick and send the object back.

      Click image for larger version

Name:	Give back Control and return Object.jpg
Views:	1
Size:	137.8 KB
ID:	1126007

      Hope that helps others. G

      Comment

      Working...
      X