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 18-Jun-2013 14:49:46

illutic
Member
From: Indonesia
Registered: 10-Jun-2013
Posts: 26

[solved]rotate object with keyboard[solved]

hello arkeon..

how to rotate object with keyboard??

ex: left arrow for rotate to left
      right arrow for rotate to right

thx before

Last edited by illutic (19-Aug-2013 21:50:16)

Offline

#2 18-Jun-2013 17:14:36

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

Re: [solved]rotate object with keyboard[solved]

hello

try using the object rotate plugIT
enable the rotation on start and use the links with parameters

keyright.down->rotate.yaw(1)
keyleft.down->rotate.yaw(-1)
keyright.up->rotate.yaw(0)
keyleft.up->rotate.yaw(0)

Offline

#3 7-Jul-2013 09:05:33

illutic
Member
From: Indonesia
Registered: 10-Jun-2013
Posts: 26

Re: [solved]rotate object with keyboard[solved]

I have tried
when the keydown event, how can i get spinning object, not back to the beginning. What parameters should I change?...

Offline

#4 7-Jul-2013 23:46:20

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

Re: [solved]rotate object with keyboard[solved]

I don't understand.

I've tried my example and it works as expected

Offline

#5 23-Jul-2013 18:38:31

illutic
Member
From: Indonesia
Registered: 10-Jun-2013
Posts: 26

Re: [solved]rotate object with keyboard[solved]

im sorry if my english is bad, this is what I mean
how when the user presses the left / right arrow(key down) objects get spinning and object stop when the button is released(key up), but not such as turning instance rotate.

in the case that you show, it was only when the button is pressed object rotates 15 degrees and when the object is released back to their previous position

when the left arrow key down
left arrow key down


when left arrow key up
left arrow key up

Last edited by illutic (23-Jul-2013 19:02:06)

Offline

#6 24-Jul-2013 00:12:53

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

Re: [solved]rotate object with keyboard[solved]

Hi !

here an example for an object on marker rotated with the left / right arrow keys
http://www.arkeon.dyndns.org/scol/rotate.xos

Offline

#7 26-Jul-2013 19:44:10

illutic
Member
From: Indonesia
Registered: 10-Jun-2013
Posts: 26

Re: [solved]rotate object with keyboard[solved]

succeed.. thx
arkeon, how to remove the dark side in my object?

Offline

#8 27-Jul-2013 00:32:06

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

Re: [solved]rotate object with keyboard[solved]

you can change the ambient color or the material of your object.
right click on the scene node in the tree > render settings for the ambient color

Offline

Board footer

Powered by FluxBB