Rotate a cube exactly 90 degrees with angular velocity

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

Moderators: jesterKing, stiv

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

Rotate a cube exactly 90 degrees with angular velocity

Post by imapiratemon » Mon Jul 29, 2013 8:52 pm

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

Reply

Post by Matt_Gardener » Mon Aug 05, 2013 5:26 pm

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

Post by sunnix » Fri Aug 16, 2013 9:20 am

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.

Image

Image
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 :idea:

sunnix

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

Post by sunnix » Sat Aug 17, 2013 12:24 am

Hi,
I solved my problem with the actuator "constraint" with which you can set the angle / inclination of an object.

Here in short:
Image

I hope it can help somebody

:)

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

where is "solved"

Post by sunnix » Sat Aug 17, 2013 12:27 am

to indicate that we got a solution ?

Post Reply