Announcement

Collapse
No announcement yet.

Teleporting player and keeping the current camera relative position (camera lag enabled)

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

    Teleporting player and keeping the current camera relative position (camera lag enabled)

    Hello,

    Here is my problem. My pawn has camera lag enabled, and I need to teleport (using a Set Location, teleport or whatever) it while keeping the current relative location of the camera.

    Right now if you teleport the player, the camera will lag behind and catch up.

    I tried to turn Camera Lag off before teleporting the player, but that automatically reset the current camera location. So that's not an option.


    ps : at any point, the relative position of the component camera is 0,0,0. It doesn't provide the current "eye" of the player. (i wanted to try to get it the information before the teleport and apply it back... no luck)


    Does anyone know how to solve that case ?
    Thanks !

    Currently working on Hexawing : https://twitter.com/JohnGGranier
Working...
X