Point In Front of SpaceShip

Blitz3D Forums/Blitz3D Programming/Point In Front of SpaceShip

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

put a object infront of the ship say 10000 units away

Well, I'll try this way:
1) create the object parented to the ship; in this way, it will be at 0,0,0 related to the ship, and 'oriented' as the ship:

cube = createcube(myship)

2) unparent the object with:
SetEntityParent cube,0

3) move the object 10000 units far away with:
MoveEntity cube, 0,0,10000

Note: if you need to move the object so that it stays always in front of the ship when the ship moves, you may not need the unparent bit.

Hope this has sense for you,
Sergio.