Sie sind nicht angemeldet.

Riknieri

Anfänger

  • »Riknieri« ist der Autor dieses Themas

Beiträge: 38

Wohnort: Lucca

Beruf: Graphic and Multimendia artist

  • Nachricht senden

1

Freitag, 20. Mai 2011, 09:49

invert rotation by drag mouse over object

hi,
i've created several 360 vr object with pano object multires and it's great, but i need to invert object rotation direction when i drag it with mouse left button over it.

in details....
when i drag mouse toward left, object rotate from left to right and so on with right drag obj go from right to left.

i need to change direction....dragging mouse toward left i need obj turn from right to left and dragging toward right ...left to right

is there any parameter i may change to fix this issue?

thanks.

2

Donnerstag, 2. Juni 2011, 11:49

Hi,

the object rotation is done by action code in the objectskin.xml,

so open the objectskin.xml and look there for these lines:

Quellcode

1
2
set(rotatedirection, right);
if(framemove LT 0, mul(framemove,framemove,-1); set(rotatedirection, left); );

and change them to:

Quellcode

1
2
set(rotatedirection, left);
if(framemove LT 0, mul(framemove,framemove,-1); set(rotatedirection, right); );


best regards,
Klaus

Ähnliche Themen