Forum Discussion
andrewtek
10 years agoMHCP Member
Matinee Lift becomes Launcher in VR Preview
Hi Everyone,
I was noticing some odd behavior with Matinee platforms, so I created a new "Rolling Template" example and put a platform under the floor where the ball starts. I then used Matinee to lift the platform into the air over a 2 second period.
I then went into the level BP to have the matinee start when the level begins playing.
When I would click Play > Selected Viewport, everything works as expected. The platform comes up through the floor and lifts the ball into the air. Yeah.
When I would click Play > VR Preview, the result was different (NOTE: You do not want to use your HMD here as it could make you sick with Rolling Template. Rather, just preview on screen). Instead of gently lifting the ball into the air, the ball would be launched several hundred meters into the air.
I realized that the reason this happens is because the UE4 matinee moving the lift gets "behind schedule" while VR Preview is initializing. To catch up, the velocity of the moving platform speeds up to a point that the physics objects (the ball) gets smacked by a high velocity platform.
To test this theory, I added a 2 second delay so the lift would not occur until VR Preview was fully initialized. This worked, but brings up a question... what is the Event we should wait for to truly begin initializing a level? Should the additional initialization that occurs with VR Preview be occurring before BeginPlay is fired?
Thanks!
I was noticing some odd behavior with Matinee platforms, so I created a new "Rolling Template" example and put a platform under the floor where the ball starts. I then used Matinee to lift the platform into the air over a 2 second period.
I then went into the level BP to have the matinee start when the level begins playing.
When I would click Play > Selected Viewport, everything works as expected. The platform comes up through the floor and lifts the ball into the air. Yeah.
When I would click Play > VR Preview, the result was different (NOTE: You do not want to use your HMD here as it could make you sick with Rolling Template. Rather, just preview on screen). Instead of gently lifting the ball into the air, the ball would be launched several hundred meters into the air.
I realized that the reason this happens is because the UE4 matinee moving the lift gets "behind schedule" while VR Preview is initializing. To catch up, the velocity of the moving platform speeds up to a point that the physics objects (the ball) gets smacked by a high velocity platform.
To test this theory, I added a 2 second delay so the lift would not occur until VR Preview was fully initialized. This worked, but brings up a question... what is the Event we should wait for to truly begin initializing a level? Should the additional initialization that occurs with VR Preview be occurring before BeginPlay is fired?
Thanks!
Replies have been turned off for this discussion
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 year ago