IBMDiscSensorsNested
IBMDiscSensorsNested.mp4
Description
This test case is based on the IBMRectangleGroupsRotating
and has been altered to allow rotation of the parts to be done manually by dragging, utilizing DiscSensor
nodes on the groups, rather than automatic rotation using TimeSensors with Interpolators. Additionally the
upper magenta part of the shape has been grouped with a light-gray Rectangle, which has a PlaneSensor2D, so
the whole shape can be dragged using that Rectangle around the screen.
For a complete description of the groups of shapes refer to the
IBMRectangleGroupsRotating test case upon which this is
largely based. Since the whole shape can be rotated and moved manually it has been scaled up here - the
original test case rotates automatically and at this size parts would often not be visible as they would go
off screen. However for this case the shape can be dragged around at will to keep it all in view if desired.
Briefly the parts which can be dragged are as follows:
- The upper light-gray rectangle which can be moved
- The magenta arm part which can be rotated about its upper point
- The cyan arm part which can be rotated about the point where it connects to the magenta arm
- The white rectangle can be rotated at the end of the cyan arm. Initially this is not visible as
its covered by the four colored rectangles. Rotating one of the colored rectangles will uncover it
so that it can be rotated, which also rotates the group of four rectangles.
- Each of the four colored rectangles can be rotated about their corner at the middle of the
white rectangle. (Note: unlike the test case upon which this is based the rotation point of the four
rectangles is not changeable)
Screenshot
Snapshot taken after parts have been dragged (rotated and moved) from their original locations
Back to main index