[SOLVED] Model not follow Camera in VR

Hello, I’m making VR project, I need some help
Sorry for I can’t upload project, beacuse it’s private things.

In my project,

Camera
ㄴPlayer Model

When I move with controller, Model follows camera, but when I move Phiscally(with my leg), model don’t follow. but rotation works well.

I tried,

TempPositioner.prototype.update = function (dt) {
this.model.setPosition(this.camera.getPosition());
};

but it doesn’t work.

I’ve just tried this simple example and it works fine moving around the room physically https://playcanvas.com/project/928816/overview/entity-follow-camera

image

1 Like

Thanks,
I checked your project, but I could’t find differences.
So I checked mine again, and found problem.
there’s crushed between VR movements and keboard movements.

I just block keyboard input when on XR, It works well