Announcement

Collapse
No announcement yet.

Keeping mesh camera-orientated - easiest way?

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

    Keeping mesh camera-orientated - easiest way?

    What would be the easiest/least performance costly way to keep a mesh (plane) facing camera all the time, no matter where player looks?

    Basically I need to trace from the view and when trace hits something, a static mesh should appear on the trace line (perhaps with adjustable offset from the trace line axis) always facing camera.

    Thanks.

    #2
    Just a plane? Use a Billboard or MaterialBillboard component. They just draw a camera-facing plane with a texture/material.

    Comment


      #3
      3D widget (UMG) actually

      Comment


        #4
        Honestly, you can do this in the HUD, if you're just looking to display a texture.

        Click image for larger version

Name:	736a7e9d329794b44c55b40b97a881f8.png
Views:	1
Size:	173.1 KB
ID:	1105286

        If you really do want to have a mesh though, you can make a custom mesh actor, and put this on tick in the mesh actor. The mesh's X axis will point to the camera, but you can offset the rotation to make any point face the camera.

        Click image for larger version

Name:	899413517a48c75eb46070563dc469ec.png
Views:	1
Size:	103.2 KB
ID:	1105287
        They broke the signatures so I removed mine thinking it'd be awhile. The signatures work again, but I haven't redone my signature yet.

        Comment

        Working...
        X