How to move a whole scene (X, Y, Z) on grab?!

Hello!

I want to be able to move the whole scene (or does the scene have to be an actor?) in X, Y and Z in any direction when I grab the red ball (see picture) with the VR hand.

Does anyone have any ideas on how to implement this?

Thank you very much if anyone has any ideas.

Do you want to move everything except the player? In that case it’s easier to move the player in the opposite direction instead.

In general this is done by storing the position of the hand when you start grabbing. Then every frame you take the original position, subtract the current position of the hand from it, and move the player pawn by the resulting vector.

2 Likes

Thank you very much, i’ll try this.

I’ve already figured it out the other way, but i think your suggestion is better.

I’ll just have to figure out, how to get the hand position.

I want to achieve, if my hand (or Controller) is grabbing and goes up and down, the scene (or the vr player position) goes also up and down (reverse).

If my hand (or controller) is grabbing and moves left / right the scene (or player) should also move left / right (reverse). A better solution would be, if the scene is rotating around the player in a defined radius (or the vr player rotating around the scene).