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 1-May-2016 16:36:46

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 271

Rotate attached to player object (3d compass)

i make 3d model of compass and attach this to camera shell(player), but target inst not works but works object link inst
1540edf68877.jpg
me need - compas attached to player automatically rotate to north

https://drive.google.com/open?id=0BxQ6o … W1FWEU4bGc project

and how to determine which way north in os3d

Last edited by el_motoblock (1-May-2016 16:42:57)

Offline

#2 1-May-2016 16:45:48

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

Re: Rotate attached to player object (3d compass)

north could be z positive axis.
in fact you decide.

so what you can do is to set the compass object orientation to 0 0 0 in world maybe with a timer

Offline

#3 1-May-2016 17:01:10

el_motoblock
Member
From: Russia
Registered: 16-Feb-2013
Posts: 271

Re: Rotate attached to player object (3d compass)

big_smile I can not come up with

Offline

#4 1-May-2016 17:05:43

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

Re: Rotate attached to player object (3d compass)

add a dummy and place the compass on it at 0 0 0
and link the dummy to the camera shell
then with object position plugit
use the timer to set the rotation to 0 0 0 on the compass object each 30 ms for example
and don't forget to set the object position to wold coords by unchecking local

Offline

Board footer

Powered by FluxBB