Jump to content
Sign in to follow this  
cervantes

hand gun barrel animation

Recommended Posts

hi all i have one any probleme for animate a barrel of my 357 magnum.

a selection of barrel on p3d has named "barillet"

a axis named "barillet_axis" in config cpp i have write

class CfgModels

{

class 357_Magnum

{

skeletonName="357_Magnum";

class Animations

{

class Barrel_turn

{

type="rotation";

source="revolving";

selection="barillet";

axis="barillet_axis";

angle0=rad +360;

angle1="rad -360";

};

class barrel_hide

{

type="hide"; // The type of animation.

source="isEmpty"; // The controller that provides input.

selection="barillet"; // The name of the skeleton bone used.

};

};

a animation working but the barrel that rotates around the pistol

and d'ont rotate on itself.

have you one idea for a barrel rotate on itself?

Share this post


Link to post
Share on other sites

- Is "barillet_axis" definitely in the memory lod and only 1 or 2 points ?

- Tray maybe

type="rotationX";

or

type="rotationY";

with

axis="";

By the way

angle0=rad +360;

angle1="rad -360";

looks like 2 revolutions, not 1. Not sure what the plan was.

Share this post


Link to post
Share on other sites

i have define in lod memory one point axis only.

i have test with rotationX y and Z and barillet rotates around the pistol.

the probleme has identical whits you solution confused_o.gif

Share this post


Link to post
Share on other sites

As far as I'm aware with an animation source as "rotation" you need a TWO POINT AXIS. Try copying the current point and moving it slightly along the X axis (horizontally). A single axis point rotation often confuses the game, without an X/Y/Z addition.

Share this post


Link to post
Share on other sites

also, the entry

memory = 1;

will tell the model that its looking for the axis in the memory lod.

Share this post


Link to post
Share on other sites

thank you for your answers.

after test this possibilities the probleme has not solved a barrel turn always around a weapon i d'ont understand realy the rotation animation type confused_o.gif

i have tes with two axis point barillet_begin and barillet_end and name this two points selection barillet_axis and test with X ,Z and Y axis.

i have test also

revolving="barillet";

revolvingAxis="barillet_axis";

and this d'ont working.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×