Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 946 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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