I’m making a space game and a really important factor is spherical gravity. The thing is though, I don’t know how I would do this. If anyone can help, please help.
Hi @Maximos_Finley ,
Check this post, it discusses the same and provides some ideas on how to approach this:
Hi Everyone, I’m new in PlayCanvas and I’m looking for some guidance in how to approach the following challenge:
I’m moving a car along a spherical surface using the Keyboard Arrows, but I’m having trouble to keep the Car/entity “stick” to the ground . The Gravity from the general settings is 0 and I’m using this code to force the “Car” stay on the surface, but at some point the rotation gets crazy,
this.planet = this.app.root.findByName("FakePlanet");
var gravity = new pc.Vec3();
gravity = t…