Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (dBc), 17,435 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Point of axis rotation change [Re: MrGuest] #320175
04/20/10 07:52
04/20/10 07:52
Joined: Jul 2007
Posts: 53
Germany
Henning Offline
Junior Member
Henning  Offline
Junior Member

Joined: Jul 2007
Posts: 53
Germany
Hello, when I understand right, you want a cube rolling over the floor. You will need a combination of transformations and a rotation.
1. Define 4 vectors from the center of cube to the midpoints of the lower edges, i.e. vecToFront, vecToLeft...
2. Transform the center of cube to the midpoint of the desired rotation edge.
3. Rotate the cube (ent.pan...) and all four vectors by the desired angle (vec_rotate).
4. Transform the cube and vectors from the transformed tip of the midpoint vector to the center of the cube (example: vec_diff (lastTrans, cube.x, vecToLeft)).
Hope that helps.

Re: Point of axis rotation change [Re: Henning] #320185
04/20/10 09:30
04/20/10 09:30
Joined: Apr 2010
Posts: 47
D
Darkmatters Offline OP
Newbie
Darkmatters  Offline OP
Newbie
D

Joined: Apr 2010
Posts: 47
That sounds about right, however, I am a noobie... so if you could give a little more explanation.....

Thanks for replying tho...

F.

Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1