Scolring - Forum

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.

#1 16-Mar-2018 00:41:28

Frepp
Member
Registered: 8-Mar-2018
Posts: 2

Ignore AR marker for physics or set local gravity, possible?

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

#2 16-Mar-2018 00:59:57

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,090
Website

Re: Ignore AR marker for physics or set local gravity, possible?

Hello,

yes you can smile

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

#3 16-Mar-2018 10:32:16

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,090
Website

Re: Ignore AR marker for physics or set local gravity, possible?

Offline

Board footer

Powered by FluxBB