Make sphere roll away from camera

The axis that the sphere needs to rotate on to move away from the player isn’t always the same so how can I make this work?

https://playcanvas.com/editor/scene/1458391

Hi @MoonAlien822,

Can you explain a bit more about your player?

To get the direction an entity is looking at you can use the following Entity property:

this.entity.forward;

@Leonidas ofc I can explain! what do you need to know?