Ok, I am using a virtual world in a java 3d applet.
The following code creates the cylinder and interpolator. I left it out as I think it confuses the problem (as im using arrays of objects)
TransformGroup objTrans = new TransformGroup();
//---------------Set capabitilites
objTrans.setCapability(Tra
//------------------------
alphaCents[centNum] = new Alpha(-1,masterAlpha);
//------------------------
alphaCents[centNum].pause(
//------------------------
alphaCents[centNum].setDec
//------------------------
alphaCents[centNum].setTri
//------------------------
double delay = (centDistance[centNum] / gblTotalHeight) * alphaCents[centNum].getInc
alphaCents[centNum].setPha
// Create interpolator
animCents[centNum] = new RotPosScalePathInterpolato
alphaCents[centNum],
objTrans,
new Transform3D(),
animKnotsExt,
animRotExt,
pExt,
animScaleExt);
animCents[centNum].setSche
.
The problem I have is I cannot find a way to identify the 3d coordinates of the cylinder at a point in time (it obviously changes due to the position interploator). I can find the alpha value. I can work out the distance it has travelled (alphaValue * total distance) but because the path is not straight i cannot find its position.
I was thinking a raster as you can use this to determine depth.
Main Topics
Browse All Topics





by: InteractiveMindPosted on 2009-09-11 at 08:06:45ID: 25310285
>I have a cylinder ...
How are you defining the cylinder?
>I wish to find out what the coordinates of it are at any point in time
The coordinates of what exactly?
>I have read I may need to use a raster for this ...
Perhaps you could elaborate on the problem, because I can't see what a raster has to do with this...