You can take the world transform of the cube, multiply it by the local
coordinates of the cube's corners and you'll have the world
coordinates of the cube's corners.
So something along the lines of:
worldCoordCubeCorner = cube.transform.transformVector(new Vector3D(10,
10, 10));  // where Vector3D(10, 10, 10) is the local coordinate of a
cube's corner.

-- Apprentice

On Jun 1, 10:46 am, andrew barry <[email protected]> wrote:
> when i rotate an object with keyboard  player.rotationY for a mesh
> player, how do i get the new points?
>
> for example if I have a cube  20px h,w,d then the position is at
> x,y,z=0 and each point will be 10px from the middle.
> if i rotate this cube around its middle then corners of the cube are
> now?
>
> using trig is slow.

Reply via email to