Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  How to simulate Planet gravity
#6
(27-10-2021, 11:15 AM)wushuaiqi Wrote: But I still don't know how to get solver center position

solver.transform.position. That is the solver's center position.

(27-10-2021, 11:15 AM)wushuaiqi Wrote: Do solver position and set gravity position overlap?

I don't know what you mean by "gravity position", gravity is not a position but a vectorHuh

(27-10-2021, 11:15 AM)wushuaiqi Wrote: And what is solver in"var pos = solver.transform.position;"

"solver" is a variable of type ObiSolver, that is, a reference to a solver.

These are very basic programming/physics concepts. If you're new to Unity or game physics you will find Obi to be very hard and confusing to use, since it's aimed at advanced users. I'd recommend reading up on C# programming, transform hierarchies and basic physics (forces, accelerations, impulses, mass, etc).
Reply


Messages In This Thread
How to simulate Planet gravity - by wushuaiqi - 27-10-2021, 10:28 AM
RE: How to simulate Planet gravity - by wushuaiqi - 27-10-2021, 10:52 AM
RE: How to simulate Planet gravity - by wushuaiqi - 27-10-2021, 11:15 AM
RE: How to simulate Planet gravity - by josemendez - 27-10-2021, 11:18 AM
RE: How to simulate Planet gravity - by wushuaiqi - 27-10-2021, 11:18 AM
RE: How to simulate Planet gravity - by wushuaiqi - 27-10-2021, 11:26 AM