Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (TedMar, AndrewAMD, fairtrader), 578 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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