Quantcast
Channel: The Highlander Blog » flash
Viewing all articles
Browse latest Browse all 10

WCK and Joints visuals

$
0
0
Going back to using WCK (World Construction Kit) and Joints, I thought I would post some more info, as someone looking at the blog post was having problems and needed some more visuals. So here are some WCK Joints visuals…
Setup
Library
World1
Joint
Ball
Rectangle1
Stage
various Rectangle1 objects (named)
various Joint objects (not named)
One World1 object – all the other objects are inside this object
Drop a couple of Rectangle1 objects on to your stage (but inside the World1 object).
The Ball symbol is what I use for my Joints.
Now, drag over a Joint object, but position it on top of one of the Rectangle1 objects. This step is very important, as the WCK will use this overlap to work out how to make the Joint work.
Click on the Joint object on the stage (which should currently be on top of a Rectangle1 object). Then change the Joint properties as follows…

For a revolute joint…
type:revolute
This will create a joint around which your Rectangle1 object will revolve. Make sure you position the joint object on top of the object you wish to have revolve.
For a distance joint…
type:distance
target2Name: second (for example)
A distance joint will tie two objects together – the object the joint is actually on, and the object defined by target2Name.
Here are some screenshots to help…
distance joint setup

distance joint setup

Joint symbol properties

Joint symbol properties

library setup

library setup

distance joint properties

distance joint properties

revolute joint setup

revolute joint setup

revolute joint properties

revolute joint properties

Hope this helps everyone – have fun, and play around with the other properties and see what you get.


Viewing all articles
Browse latest Browse all 10

Trending Articles