How to use differents joints on creatures ? 

I try to use many forms of joints for my creatures:
I try this :

function default_joint_build()
{
Element.useJointPart1();
loadAndAddAsTransformNode("mystick" + (1 + Math.random(5)) + ".ac");
}

But I get some compile errors.
(I've made 5 objects : mystick1.ac ...mystick5.ac and want to use them
randomly)

Can you help me ?

Forums: 
Maciej Komosinski's picture

> function default_joint_build()
> {
> Element.useJointPart1();
> loadAndAddAsTransformNode("mystick" + (1 + Math.random(5)) + ".ac");
> }
>
> But I get some compile errors.
> (I've made 5 objects : mystick1.ac ...mystick5.ac and want to use them
> randomly)

Yes, please see the messages.out file in the Framsticks folder,
and post the relevant messages (compile errors) here.

MacKo

Alain Lioret wrote:
> I try to use many forms of joints for my creatures:
> I try this :
>
> function default_joint_build()
> {
> Element.useJointPart1();
> loadAndAddAsTransformNode("mystick" + (1 + Math.random(5)) + ".ac");
> }
>
> But I get some compile errors.
> (I've made 5 objects : mystick1.ac ...mystick5.ac and want to use them
> randomly)

What are the compile errors. In the messages window sometimes there is
more infor in the "!" branch above the "x" branch