3d move (Irrlicht)

BlitzMax Forums/BlitzMax Programming/3d move (Irrlicht)

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.

try this (untested):

Function ib3d_MoveEntity(entity:T_irrISceneNode,x:Float,y:Float,z:Float)
	If (entity=Null Or Not entity.isValid()) Then Throw "Entity does not exist or is invalid" 
	Local dest:T_irrVector3df=T_irrVector3df.createFromVals(x,y,z)
	entity.getRelativeTransformation().transformVect(dest)
	entity.setPosition(dest)
EndFunction