Been trying to work out how to make two object I have made in AC3D swing.
one object dynamic will swing on the other object which is static.
making a chaos pendulum, have made the bits but can't seem to put them together.
here's some code I have been using and the download button will have three objects -base - middle - top.
Tired cylindrical joint as use in the Ferris wheel and now trying sphere joint, however they just don't want to play.
At the moment I am just trying to get the middle part to swing on the base part, once that as been achived the other top part should work the same way.
So anyone think they might see how to do this.
Rem ***** Main Source File *****
sync on
sync rate 60
phy enable debug
phy start
autocam off
position camera 0,5,25,-25
point camera 0,0,0
load object "base.x",1
phy make rigid body static mesh 1
load object "middle.x",2
phy make rigid body dynamic box 2
phy update
phy make sphere joint 1, 1, 2
phy set sphere joint global anchor 1, 0, object position x(2) ,object position y(2), object position z(2)
phy set sphere joint global anchor 1, 1, 0, 0, 0
phy set sphere joint global axis 1, 1,0,0,1
phy build sphere joint 1
phy set rigid body mass 2,15
`load object "top.x",3
`phy make rigid body dynamic mesh 3
`phy make cylindrical joint 1, 1, 2
`phy set cylindrical joint global anchor 1,0,0,0,0
`phy set cylindrical joint global axis 1, 1,0,0,1
` 1, 0, 0, 1, 1
` 0, 1, 1
`phy set cylindrical joint global anchor 1, 1, 0, 1, 1
`phy set cylindrical joint global axis 1, 1, 0, 1, 1
`phy build cylindrical joint 1
do
phy update
sync
loop
Dark Physics makes any hot drink go cold.