Hi,
i wonder if/how you can get the position of a child entity:
My code: (How do u get those nice code fields?^^)
Graphics3D 640,480
SetBuffer BackBuffer()
camera=CreateCamera()
light=CreateLight()
parentcube=CreateCube()
PositionEntity parentcube,0,0,5
EntityColor parentcube,0,255,0
childcube=CreateCube(parentcube)
PositionEntity childcube,3,0,0
EntityColor childcube,0,0,255
While Not KeyDown( 1 )
TurnEntity parentcube,1,1,1
RenderWorld
Text 5,20,"X Position of child " +EntityX(childcube)
Text 5,40,"Y Position of child " +EntityY(childcube)
Text 5,60,"Z Position of child " +EntityZ(childcube)
Text 5,80,"Yaw of child " +EntityYaw(childcube)
Text 5,100,"Pitch of child " +EntityPitch(childcube)
Text 5,120,"roll of child " +EntityRoll(childcube)
Flip
Wend
End
Actually i thought that i'll get the position of the child as i see it. But the text only shows me the starting position!
Could anyone help me please?
i wonder if/how you can get the position of a child entity:
My code: (How do u get those nice code fields?^^)
Graphics3D 640,480
SetBuffer BackBuffer()
camera=CreateCamera()
light=CreateLight()
parentcube=CreateCube()
PositionEntity parentcube,0,0,5
EntityColor parentcube,0,255,0
childcube=CreateCube(parentcube)
PositionEntity childcube,3,0,0
EntityColor childcube,0,0,255
While Not KeyDown( 1 )
TurnEntity parentcube,1,1,1
RenderWorld
Text 5,20,"X Position of child " +EntityX(childcube)
Text 5,40,"Y Position of child " +EntityY(childcube)
Text 5,60,"Z Position of child " +EntityZ(childcube)
Text 5,80,"Yaw of child " +EntityYaw(childcube)
Text 5,100,"Pitch of child " +EntityPitch(childcube)
Text 5,120,"roll of child " +EntityRoll(childcube)
Flip
Wend
End
Actually i thought that i'll get the position of the child as i see it. But the text only shows me the starting position!
Could anyone help me please?