Units on near and far parameter values

Post Reply
jamesbraza
Posts: 1
Joined: Sun Jan 02, 2022 7:30 pm

Units on near and far parameter values

Post by jamesbraza »

The pybullet example file getCameraImageTest.py lists a near plane distance and a far plane distance:

https://github.com/bulletphysics/bullet ... ageTest.py

Code: Select all

near = 0.02
far = 1
Another pybullet example file pointCloudFromCameraImage.py lists:

https://github.com/bulletphysics/bullet ... raImage.py

Code: Select all

near = 0.01
far = 1000.0
What are the units on these distances? Are they meters?

From the Hello PyBullet World it lists gravity as -10 z, which I am assuming is an approximation for -9.81 m/s^2.

https://docs.google.com/document/d/10sX ... dfuxtf2f72

Code: Select all

p.setGravity(0,0,-10)
So, are units in meters by default? How would one discern units in all of the pybullet example files?

Thank you in advance for any help. I am came here from https://github.com/bulletphysics/bullet3/issues/2665
Post Reply