Physics

Given my limited knowledge of physics, I would appreciate it if individuals with a solid understanding of the subject could provide insights into this matter. I have added a physical component to a entity in Reality Composer Pro, but I am seeking guidance on how to achieve the following:

  • Make an object float in the air (with a slight downward motion reminiscent of the moon’s surface)
  • Enable the object to move at a slow pace
  • Implement a strong rebound force

I would be grateful if you could provide appropriate values for these parameters. Thank you for your assistance.

Answered by Claude31 in 806466022

Make an object float in the air (with a slight downward motion reminiscent of the moon’s surface)

So it will not Float but live in a low gravity environment.

On the moon, it is 1/6 or earth gravity, ie 1.62 m/s*s vs 9.81

It is a scene property, not an object property. See here how to set it: https://forums.developer.apple.com/forums/thread/133516

sceneView.scene.physicsWorld.gravity = SCNVector3(0, -1.62, 0)

You can reduce the value -1.62 to -0.5 for instance if you want lower gravity.

Accepted Answer

Make an object float in the air (with a slight downward motion reminiscent of the moon’s surface)

So it will not Float but live in a low gravity environment.

On the moon, it is 1/6 or earth gravity, ie 1.62 m/s*s vs 9.81

It is a scene property, not an object property. See here how to set it: https://forums.developer.apple.com/forums/thread/133516

sceneView.scene.physicsWorld.gravity = SCNVector3(0, -1.62, 0)

You can reduce the value -1.62 to -0.5 for instance if you want lower gravity.

Physics
 
 
Q