lfnetwork.com mark read register faq members calendar

Thread: Why can't bone angles be adjusted by value of variables??
Thread Tools Display Modes
Post a new thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Prev Previous Post   Next Post Next
Old 07-20-2006, 03:32 PM   #1
Vruki Salet
Junior Member
 
Vruki Salet's Avatar
 
Join Date: Aug 2005
Location: Somewhere else entirely
Posts: 443
Why can't bone angles be adjusted by value of variables??

I'm messing with setting bone angles in BG_G2PlayerAngles and a weird thing happens.

This doesn't work:

Code:
static vec3_t rhangAngle;
float p = 20.0f;

VectorCopy(vec3_origin, rhangAngle);
rhangAngle[PITCH] +=  p;

--snip irrelevant if(){} for being in a vehicle--

strap_G2API_SetBoneAngles(ghoul2, 0, "rhang_tag_bone", rhangAngle, BONE_ANGLES_POSTMULT, POSITIVE_X, NEGATIVE_Y, NEGATIVE_Z, 0, 0, time);
This does:

Code:
static vec3_t rhangAngle;
float p = 20.0f;

VectorCopy(vec3_origin, rhangAngle);
rhangAngle[PITCH] +=  20.0f;

--snip irrelevant if(){} for being in a vehicle--

strap_G2API_SetBoneAngles(ghoul2, 0, "rhang_tag_bone", rhangAngle, BONE_ANGLES_POSTMULT, POSITIVE_X, NEGATIVE_Y, NEGATIVE_Z, 0, 0, time);
See the only difference is in the first I added "p" (float value of 20.0) to rhangAngle[PITCH] and in the second I just added a float of 20.0 directly.

What gives?
Vruki Salet is offline   you may: quote & reply,
Post a new thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > Why can't bone angles be adjusted by value of variables??

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:06 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.