Bone Rotating

Posted By: Warkey

Bone Rotating - 05/05/09 07:52

Hello.

I'am working on a 3D Funfair Simulation. The arm need to lift, i use bones. This is when it's OK:



But when i Press T to lift the arm, it goes wrong:



The arm is turning up, but also to the side and that's wrong!
The arm only need to rotate up. When i rotate my arm in MED, it is also turning like on the second picture.

My script:

Code:
	// Armen Liften
	if (key_t) { armlift = 0.1; }
	my.skill2 = armlift;
	ent_bonerotate(my,"arm",vector(0,my.skill2,0));


Does anyone can help me to turn the arm correctly up?
Thanks!

Regards,
Warkey
Posted By: KiwiBoy

Re: Bone Rotating - 05/05/09 08:14

Probably need to see the .mdl file to determine if the proper bone is not dependant on another.
e.g. the arm could be somehow tied to another vertex within the armature model. This often happens when using MED when tired.
Posted By: Quad

Re: Bone Rotating - 05/05/09 08:17

if you can upload the model somewhere maybe we can help better
Posted By: Warkey

Re: Bone Rotating - 05/05/09 08:36

Iv'e PM'd you both my uploaded model.

I hope some of you can help me fixing my problem.
Posted By: Quad

Re: Bone Rotating - 05/05/09 08:39

okay i found your problem, your problem is that, only one bone is not enough for you, you need the constraint axis. to do that you can use 2 vertices or 2 bones, i am adding you to im, i can explain there better.
Posted By: Quad

Re: Bone Rotating - 05/05/09 10:47

some MOD take care of this BUNNY please, he is using the Pro 7.05, and you know what it is.(or wait him to ask why his script and vec_for_vertex is randomly crashing)
Posted By: Warkey

Re: Bone Rotating - 05/05/09 10:57

I'am wrong yes...
But i use it for private, and i will be buy license soon!

edit:

Using my brothers license, your code works Quad! smile
Posted By: Quad

Re: Bone Rotating - 05/05/09 12:36

private use doesn't make it legal,

i don't understand why d anyone use a incomplete warez version when there is free and fully working version available.

good to hear that it works.
© 2023 lite-C Forums