Move around the planet

I’m translating my code from unity 3d in to stride 3d and I have problem translating it.

this code does that player is rotating around the planet without south pole maddness.

		PlanetDirection = Planet.position - transform.position;
		// Align to planet without south pole maddness :)
		planetDistance = Vector3.Distance(transform.position, Planet.position);
		Ray ray = new Ray(transform.position, PlanetDirection);
		RaycastHit hit;
		Debug.DrawRay (transform.position, PlanetDirection);
		if (Planet.GetComponent<Collider>().Raycast(ray, out hit, planetDistance)  ){
			transform.rotation = Quaternion.LookRotation( Vector3.Cross(transform.right, hit.normal) , hit.normal);

can anybody help me here

Take a look at the RigidbodyComponent or CharacterComponent for introducing physics into your scene. You can then use physicsComponent.Simulation.Raycast(from, to) to run the raycast. I would also advise you to first go over the tutorials on YT C# Beginner tutorials - YouTube