Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AbrahamR, wdlmaster, 7th_zorro, dr_panther, 1 invisible), 764 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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