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.

  • Hi,

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

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

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


    and change them to:

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

    best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!