Hello, at the beginning I will add that I am a novice, so please be understanding.
I am trying to create a world (sphere) with its own gravity, I found a few scripts on the internet that allow you to influence objects and they work well, even on test players … until it’s not a VR player, for unknown reasons the controllers start going crazy.
However, I did notice when I add a simple script without the built-in gravity using character.Move it work just great:
public float gravity = 10f;
private float fallingSpeed;
private void FixedUpdate()
{
fallingSpeed += gravity * TimeFixedDeltaTime;
character.Move(Vector3.up * fallingSpeed * Time.FixedDeltaTime);
}
However, I can’t figure out how to rewrite the script to make it work for the sphere, I guess I should rely on:
Gravity_Point = GameObject.FindGameObjectWithTag ("Planet"). Transform.position;
But I can’t get work in any way, will you help?