## Rotate a cube exactly 90 degrees with angular velocity

Game Engine, Players & Web Plug-in, Virtual Reality, support for other engines

Moderators: jesterKing, stiv

imapiratemon
Posts: 0
Joined: Mon Jul 29, 2013 8:42 pm

### Rotate a cube exactly 90 degrees with angular velocity

I need a cube to rotate 90 degrees at the press of a button, but I want the viewer to see the cube spin, so I'm using angular velocity. Is there any way to make sure the cube always rotates 90 degrees? or even better make it so that it always ends up with one of the faces parallel to the camera?

Matt_Gardener
Posts: 0
Joined: Mon Aug 05, 2013 5:24 pm
Location: United Kingdom

I'm also interested in this if anyone has an answer??

sunnix
Posts: 0
Joined: Fri Aug 16, 2013 8:57 am

### I am also intersted to know something about that

Hi
I am looking for a solution a similar problem.

I ve created a character which is moving on the scene floor, but stay always parallele to the horizont line even if the floor has a 45° inclination.
It should follow the inclination of the floor.

I would like to solve this problem with Ray sensors. As soon as one of these 2 Ray sensors (in green) detecting an inclined floor, it should make inclining/rotating the Rigs of the character.

Is there any kind of logic brick with which is possible to apply a rotation or an angle value to the Rig or objet ?

Thanks in advance for any tipps

sunnix

sunnix
Posts: 0
Joined: Fri Aug 16, 2013 8:57 am
Hi,
I solved my problem with the actuator "constraint" with which you can set the angle / inclination of an object.

Here in short:

I hope it can help somebody

sunnix
Posts: 0
Joined: Fri Aug 16, 2013 8:57 am

### where is "solved"

to indicate that we got a solution ?