Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
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
2 registered members (AndrewAMD, Ayumi), 838 guests, and 2 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
bone animation - bone_rotate #230571
10/06/08 19:14
10/06/08 19:14
Joined: Feb 2008
Posts: 85
Germany
Schloder87 Offline OP
Junior Member
Schloder87  Offline OP
Junior Member

Joined: Feb 2008
Posts: 85
Germany
got a problem with my bone_rotate. if i press left_mouse(actoin1_key) i can let the bone rotate, but how is it makeable that the bone goes smooth to this root position?

HERES THE CODE


if((movementType == typeMouseOrKeyboard && (Key_Pressed(action1_key_scancode) )))
{


// Bonebewegung für Bogen
camera_tilt = bone_ang.tilt; // Neue Angaben für tilt-Bewegung des Kopfes
camera_tilt = clamp(camera_tilt,-80,80); // Neue Angaben für tilt-Bewegung des Kopfes

bone_ang.tilt = -(pointer.y - 400) / 10;
bone_ang.tilt = clamp(bone_ang.tilt, -80,80);
bone_ang.roll = 0;

ent_bonerotate(my,"Bip01_Spine1", bone_ang);

my.moveMode = punch;

}


Visit IGRAVISION at: http://www.igravision.com
_________________________
Re: bone animation - bone_rotate [Re: Schloder87] #230738
10/08/08 06:50
10/08/08 06:50
Joined: Mar 2003
Posts: 1,524
Canada
Stansmedia Offline
Serious User
Stansmedia  Offline
Serious User

Joined: Mar 2003
Posts: 1,524
Canada
before your ent_bonerotate you need to reset the bone before you rotate it otherwise it will just continually add the value every frame. Im guessing nothing is happening or its going all crazy.

you'de be amazed how useful the manuel can be. press F1 in script editor.

// Bonebewegung für Bogen
camera_tilt = bone_ang.tilt;
camera_tilt = clamp(camera_tilt,-80,80);

bone_ang.tilt = -(pointer.y - 400) / 10; // maybe this needs
bone_ang.tilt = clamp(bone_ang.tilt, -80,80); //re evaluation?
bone_ang.roll = 0; // not sure, i cant exactly test this

ent_bonereset(my,"Bip01_Spine1");
ent_bonerotate(my,"Bip01_Spine1", bone_ang);

my.moveMode = punch;


Decessus - 80% done. 100% abandoned.
GET MY ANDROID GAME! https://play.google.com/store/apps/details?id=com.lasertrain.zspinballfree&hl=en

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