arXiv:2610.26278cs.HCOct 2026

Manuscript Offprint

arXiv:2610.26278

Bringing physics-based controller policies to virtual reality

Joan Llobera, Pierre Nagorny, Balint Hodossy, Valérie Juillard, Caecilia Charbonnier

ABSTRACT

The use of physics-based controllers in video games and virtual reality (VR) is now technically possible, but little attention has been paid to evaluating the movement quality generated by such controllers, particularly when high-quality motions are needed. Moreover, these controllers have been developed in research-oriented physics engines, which are not suitable for production projects, where game engines like Unity3D or Unreal Engine are preferred. Nowadays, it is easy to set up any element of a VR experience so users can interact with it physically, except for interactive VR characters. Can we extend this to animated VR characters?

In this work, we studied whether physics-based character animation (PBCA) controllers can produce high-quality movement in VR-compatible environments (Unity3D, WebXR). Since VR experiences typically use rigged and textured characters, we evaluated the quality of the movement by capturing and manually retargeting eight walking styles to two rigged and textured characters, which served as reference animations for comparison with the motions generated by the PBCA controllers. We also found that showing the training results on rigged and textured characters helped highlight the controller policies' animation inaccuracies.

We evaluated the quality of the results, as well as the losses at each stage of the processing pipeline: data ingest, training and inference. For data ingest, we computed accuracy metrics related to the retargeting method used. For training, we computed accuracy metrics related to different training policies and different training environments. We developed new JAX implementations of state-of-the-art PBCA controllers (DeepMimic, AMP and ADD) which can be trained in MuJoCo-MJX in minutes, 50 times faster than in a traditional CPU-based training environment. The benefit of these particular implementations is that the resulting control policies can be readily transferred to Unity3D and support cross-platform compilation, including Android, something critical for use in VR production. For inference, we tested these controller policies in Unity3D and WebXR. Our results suggest that DeepMimic and ADD trained in MuJoCo-MJX generate controller policies with better animation fidelity than other methods.

To simplify the comparison between controller policies, and different reference animations, we implemented an animation fidelity index (afi). Its results are analogous to other more common metrics, but afi is more intuitive to interpret and thus simplifies the comparison of training methods across the successive stages of the processing pipeline. We also did an expert comparison between the reference motions and the end result.

Our results suggest that any use of PBCA in production projects should be approached with caution. Some inaccuracies readily visible to an animator were difficult to detect with the different metrics commonly used, and the overall quality of the results varied considerably depending on different choices made across the processing and delivery pipeline. Finally, we provide the animation data and code to facilitate the transfer of physics-based control research results to the artistic and production communities.

Index Terms: Virtual reality, Physics-based character animation, WebXR, MuJoCo, Unity3D.

1 INTRODUCTION

Since DeepMimic [22] and DReCon [3] demonstrated that physics-based controllers driven by Reinforcement Learning (RL) policies can learn to mimic reference motion capture clips, a critical question remained underexplored: can we use physics-based controller policies to drive virtual reality (VR) characters? The answer seems to be sometimes, but unfortunately not if we want to closely match high-quality reference animations.

The lack of a standard integration of research-oriented physics engines into production-oriented game engines remains a barrier. It is also necessary to check the movement quality generated by the controller policies at each stage of the pipeline to transfer the controllers in a production environment. This can partially be done with objective metrics, but it is also necessary to rely on the expertise of an animation specialist.

In character animation, the movement is the means of expression, and any degradation in fidelity directly undermines the artistic intent. However, most evaluations focus on task success—survival rate, tracking reward, perturbation recovery—and rarely measure the fine-grained animation quality that determines production readiness. Moreover, results are typically demonstrated in research simulators rather than in production game engines (e.g., Unity3D, Unreal Engine) where animation content is actually deployed.

In this work, we implemented an end-to-end pipeline to train

*e-mail: joan.llobera@artanim.ch controller policies from an animated character, and a systematic evaluation of animation fidelity at different stages of the pipeline. Following the trends in the Physics-based character animation (PBCA) community, our pipeline trained on GPU, which is much faster than CPU training. However, to meet the requirements of production deployments, the inference was done on the CPU in VR-compatible environments (Unity3D, WebXR). We evaluated the quality of the outcome of three physics-based controller policies (DeepMimic [23], AMP [25], ADD [38]), and compared it with the outcome of a simpler and slower CPU-based training pipeline.

To assess the flexibility and reliability of different controller policies, we tested each of them on two characters and eight walking styles. We chose walking reference animations because they should be relatively easy for a PBCA policy to learn. This allowed us to focus our evaluation on animation quality, something critical for the adoption of these techniques in a production context. In summary, our contributions are:

  1. A GPU-accelerated pipeline with JAX implementations of state-of-the-art PBCA controller policies (DeepMimic, AMP, and ADD). From an FBX animation file, this pipeline trained a policy in minutes on a single GPU, converted it to ONNX and integrated it into a Unity3D scene, ready for cross-platform deployment, including Android-based VR headsets. We also deployed the controller policies on a VR-compatible web environment based on WebXR.

  2. A high-quality animation benchmark comprising two rigged and textured characters of different body proportions (adult male and female child), each performing eight walking styles, with reference motions manually retargeted to the characters by a professional animator.

  3. An evaluation of animation fidelity losses for different policies, each trained on different reference animations. We evaluated animation fidelity across all stages, from the source animation through training and to the final deployed controller policy. This was done with commonly used metrics, as well as with a new animation fidelity index, and visual inspection of each animation-policy pair. We also compared the policies with the outcome of an earlier CPU-based training pipeline that is also VR-compatible.

References (34)