playMaker

Author Topic: Circular gravity method.  (Read 7786 times)

KomalR

  • Playmaker Newbie
  • *
  • Posts: 12
    • View Profile
Re: Circular gravity method.
« Reply #15 on: January 27, 2014, 11:32:25 AM »
The problem I had with this kind of gravity is anything other rigidbody other than player would just fall off the planet and it's really hard even with parenting.

So, I kept working on the previous gravity idea but I've hit a roadblock cause I can't get the player to rotate around it's Y-axis. I've included a unitypackage. If anyone is willing to have a look at why is this happening. I'd be really thankful.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14213
  • Official Playmaker Support
    • View Profile
Re: Circular gravity method.
« Reply #16 on: February 03, 2014, 01:58:18 AM »
Hi,

 instead, have the physics gravity set to 0,0,0 and each object is responsible for its own gravity. Gravity is only a force, so it's ok to have an fsm on each object that applies a constant force of -9.8 in some axis.

bye,

 Jean

Rabassa

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Re: Circular gravity method.
« Reply #17 on: February 08, 2018, 07:59:34 AM »
Do you have a script for making the planet rotate under your player?
I'm working on a similar project.
Thanks,
rich