Gamestudio Links
Zorro Links
Newest Posts
How to buy tomorrow at open?
by frutza. 06/01/23 19:58
Adding Position to Current Trade
by AndrewAMD. 05/30/23 10:34
Unable to change multiplier of contract
by vicknick. 05/30/23 06:56
Wrong Definition of Sharpe Ratio in Zorro?
by vicknick. 05/29/23 06:32
Backtest strategy on bitcoin/crypto
by JamesHH. 05/26/23 04:36
Return type of floor()
by AndrewAMD. 05/25/23 14:17
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (AndrewAMD), 1,065 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
BInnacle, androsa, XquicksnowX, danishinvest, Trail
18942 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Point of axis rotation change #319374
04/14/10 16:05
04/14/10 16:05
Joined: Apr 2010
Posts: 47
D
Darkmatters Offline OP
Newbie
Darkmatters  Offline OP
Newbie
D

Joined: Apr 2010
Posts: 47
I want to cange the angle of rotation for a cube, front lower edge when rotating forward, back lower edge when rotating backward,left lower edge when rotating left.. etc...
I can get it to rotate ok, but always from the middle, I need to specify where the axis point is??
Any help would be appreicated.

Re: Point of axis rotation change [Re: Darkmatters] #319378
04/14/10 16:24
04/14/10 16:24
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
vec_for_vertex();

Re: Point of axis rotation change [Re: Widi] #319379
04/14/10 16:31
04/14/10 16:31
Joined: Apr 2010
Posts: 47
D
Darkmatters Offline OP
Newbie
Darkmatters  Offline OP
Newbie
D

Joined: Apr 2010
Posts: 47
that seems to be only a temporary thing, need something that is permanant??

Re: Point of axis rotation change [Re: Darkmatters] #319393
04/14/10 17:57
04/14/10 17:57
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
???

Re: Point of axis rotation change [Re: Widi] #319398
04/14/10 18:19
04/14/10 18:19
Joined: Apr 2010
Posts: 47
D
Darkmatters Offline OP
Newbie
Darkmatters  Offline OP
Newbie
D

Joined: Apr 2010
Posts: 47
Well I have tried to get that to work, without much success?

Re: Point of axis rotation change [Re: Darkmatters] #319413
04/14/10 19:55
04/14/10 19:55
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
i dont for sure whate you are doing but maby you can do it with bones

maby i litle more explanation whate you want (maby a image)


"empty"
Re: Point of axis rotation change [Re: flits] #319431
04/14/10 21:05
04/14/10 21:05
Joined: Apr 2010
Posts: 47
D
Darkmatters Offline OP
Newbie
Darkmatters  Offline OP
Newbie
D

Joined: Apr 2010
Posts: 47

Ok, well imagine a cube, the surface on the floor has 4 sides, I want to tell it to rotate/flip on a particular side..

left flip
/-------------/
/ /
back flip / / forward flip
--------------
right flip

hope this makes sense to you!!!
Thanks

Re: Point of axis rotation change [Re: Darkmatters] #319433
04/14/10 21:07
04/14/10 21:07
Joined: Apr 2010
Posts: 47
D
Darkmatters Offline OP
Newbie
Darkmatters  Offline OP
Newbie
D

Joined: Apr 2010
Posts: 47

That was supposed to be a box..... :-)

...........leftflip
back../------------/
flip./............/
..../............/ forward flip
.../____________/
......rightflip

hope this works better.....

Re: Point of axis rotation change [Re: Darkmatters] #319434
04/14/10 21:08
04/14/10 21:08
Joined: Apr 2010
Posts: 47
D
Darkmatters Offline OP
Newbie
Darkmatters  Offline OP
Newbie
D

Joined: Apr 2010
Posts: 47
better, any way, if it still is a mystery, let me know where I can send a pic...

thanks

Re: Point of axis rotation change [Re: Darkmatters] #319512
04/15/10 13:42
04/15/10 13:42
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
hey, have a look at vec_rotate(direction,angle); should do what you need

Page 1 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