VR Interaction Framework – How to fix Tiptoes

The VR player controller with the Full body tends to walk around their toes. You can fix this adjusting the character controller y off under the BNG Player component. I found “-0.15” works perfect. The problem is character scaling might kick this out. You can keep this with the following script. Attach this to the character controller.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using BNG;
public class AdjustYOffset : MonoBehaviour
{
	public float yOffset = -0.15f;
	BNGPlayerController bpc;
	
    // Start is called before the first frame update
    void Start()
	{
		bpc = GetComponent<BNGPlayerController>();
		AdjustY();
        
    }
	public void AdjustY(){
		bpc.CharacterControllerYOffset = yOffset;
	}
    // Update is called once per frame
    void Update()
    {
	    if(bpc.CharacterControllerYOffset != yOffset){
	    	AdjustY();
	    }
    }
}

Leave a Reply