Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, alibaba), 1,426 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Bone rotation limits [solved (with clamp)] #265245
05/11/09 12:49
05/11/09 12:49
Joined: Oct 2007
Posts: 116
S
sydan Offline OP
Member
sydan  Offline OP
Member
S

Joined: Oct 2007
Posts: 116
I have set up a firstperson game with a character that has bones. You play this character from the first person. To look up and down I have made the characters body bone rotate. I have tried to limit this rotation from 80 to -80. However the only way I can do it is by making the bone rotate back after it goes past 80 and -80. This causes a 'vibration' effect when you try and look directly up and down. How can I make the rotation of the bone simply stop at a certain value, or restrict its rotation easily?

Last edited by sydan; 05/12/09 12:52.

For some reason, my ambition always seems to beat my ability.
Re: Bone rotation limits [Re: sydan] #265248
05/11/09 13:00
05/11/09 13:00
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
var bonerot;

bonerot=clamp(bonerot,-80,80);

this should do the trick... sorry for not using code tags, i still havent found the button for it yet laugh kinda new here

Re: Bone rotation limits [Re: darkinferno] #265258
05/11/09 14:36
05/11/09 14:36
Joined: Oct 2007
Posts: 116
S
sydan Offline OP
Member
sydan  Offline OP
Member
S

Joined: Oct 2007
Posts: 116
Dont worry about the code tags! Ive been here awhile but keep forgeting to use them. Thanks for the help! Ill go test it out.


For some reason, my ambition always seems to beat my ability.
Re: Bone rotation limits [Re: sydan] #265398
05/12/09 12:51
05/12/09 12:51
Joined: Oct 2007
Posts: 116
S
sydan Offline OP
Member
sydan  Offline OP
Member
S

Joined: Oct 2007
Posts: 116
It works. Thank you.


For some reason, my ambition always seems to beat my ability.

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