Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / [SOLVED] How to rotate a 3D object on its own axis

Author
Message
bluemill
User Offline
Joined: 5th May 2018
Location:
Posted: 5th Jun 2018 21:15
I have a cube in the middle and wanted it to roll, similar to a dice.

How do I do that?

The author of this post has marked a post as an answer.

Go to answer

puzzler2018
User Offline
Joined: 8th Oct 2017
Location:
Posted: 5th Jun 2018 21:37 Edited at: 5th Jun 2018 21:39
This post has been marked by the post author as the answer.
Explore the command

SetObjectRotation(dice, x#, y#, z#)

https://www.appgamekit.com/documentation/Reference/3D/SetObjectRotation.htm

bluemill
User Offline
Joined: 5th May 2018
Location:
Posted: 5th Jun 2018 22:07
Exactly!
Rich Dersheimer
AGK Developer
Silver Codemaster
9
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 11th Jun 2018 20:05
Also RotateObjectLocalX,Y,Z and RotateObjectGlobalX,Y,Z so you don't have to capture the rotation, add or subtract to it, then set it. Also, MoveObjectLocalX,Y,Z.

Login to post a reply

Server time is: 2018-08-22 01:12:11
Your offset time is: 2018-08-22 01:12:11