Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology
Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered
You are not logged in.
Hello, I am making a demo for Openspace3D, creating a domino rally. I want to use a marker to place the rally on a table, but when the marker is found everything falls because the floor is not flat because the marker has an inclination to the camera.
I want to keep gravity pointing towards the floor object in the scene and not the Y vector.
Is it possible to set all physics objects to have a local gravity? Or to ignore the orientation of the AR marker?
Offline
Hello,
yes you can
place a dummy on the marker, then get it's direction using the object position plugit.
Then multiply the direction with a gravity vector using the maths multiply vector "0 -9.83 0".
and set the result as gravity vector using the physic tools plugIT
Offline
Here a sample :
http://www.arkeon.be/scol/os3d/ar_dom_phys.xos
Offline