<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[GMan's Mods & Stuff — Hello i'am new here']]></title>
	<link rel="self" href="https://gprogs.com/extern.php?action=feed&amp;tid=357&amp;type=atom" />
	<updated>2009-02-02T13:13:26Z</updated>
	<generator>PunBB</generator>
	<id>https://gprogs.com/viewtopic.php?id=357</id>
		<entry>
			<title type="html"><![CDATA[Re: Hello i'am new here']]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1353#p1353" />
			<content type="html"><![CDATA[<p>Hi gman,<br />your code work great.</p><br /><p>Have you a little code-sample for a camera they follow my object ?<br />I was happy when i found a code for a 3rd Camera in Blitzmax with your irrlicht wrapper</p><br /><br /><br /><br /><p>Sorry for my bad english....</p>]]></content>
			<author>
				<name><![CDATA[detvog]]></name>
				<uri>https://gprogs.com/profile.php?id=241</uri>
			</author>
			<updated>2009-02-02T13:13:26Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1353#p1353</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Hello i'am new here']]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1352#p1352" />
			<content type="html"><![CDATA[<p>Hi,</p><br /><p>thanks for your help.</p>]]></content>
			<author>
				<name><![CDATA[detvog]]></name>
				<uri>https://gprogs.com/profile.php?id=241</uri>
			</author>
			<updated>2009-02-01T06:56:15Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1352#p1352</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Hello i'am new here']]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1351#p1351" />
			<content type="html"><![CDATA[<p>greetings <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; Irrlicht does not have built-in move or turn functions.&nbsp; luckily though they have been worked out for the most part:<br /></p><div class="codebox"><pre><code>Function NodeMove(node:ISceneNode,x:Float,y:Float,z:Float)    
        
    &#039; from: http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=4680            
    Local dest:Vector3df=Vector3df.createFromVals(x,y,z)
    node.getRelativeTransformation().transformVect(dest)
    node.setPosition(dest)
EndFunction

Function NodeTurn(node:ISceneNode,pitch:Float,yaw:Float,roll:Float)

    &#039; from: http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=4680
    Local m:Matrix4=Matrix4.Create()
    Local n:Matrix4=Matrix4.Create()
    Local t:Matrix4=Matrix4.Create()
    
    m.setRotationDegrees(node.GetRotation())
    
    n.setRotationDegrees(_VECTOR3DF(0,0,roll))
    t.setRotationDegrees(_VECTOR3DF(pitch,0,0))
    n.MultEq(t)
    t.setRotationDegrees(_VECTOR3DF(0,yaw,0))
    n.MultEq(t)
        
    m.MultEq(n)
    node.SetRotation(m.getRotationDegrees())
EndFunction</code></pre></div>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2009-01-31T15:44:30Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1351#p1351</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Hello i'am new here']]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1350#p1350" />
			<content type="html"><![CDATA[<p>Hello i&#039;am new here.<br />I like the irrlicht wrapper.<br />Can anyone help me?&nbsp; Iam searching a code snipp for a 3d object&nbsp; move in irrlicht.</p><br /><br /><p>&#039;-------------------------------------------- MAIN ----------------------------------------------------------------------------<br />While (device.Run())<br />&nbsp; &nbsp; timer:+MilliSecs()<br />&nbsp; &nbsp; timer = MilliSecs()<br />&nbsp; &nbsp; Driver.BeginScene(True, True, Null) &#039;SColor.createFromVals(0,200 , 200 , 200))<br />&nbsp; &nbsp; str = &quot;LastMousPosition= &quot;<br />&nbsp; &nbsp; str = + lastmousepos.getY()<br />&nbsp; &nbsp; device.setWindowCaption(str)</p><p>&nbsp; &nbsp; c = boxnodgr.GetPosition()<br />&nbsp; &nbsp; d = boxnodgr.GetRotation()<br />&nbsp; &nbsp;&nbsp; </p><p>&nbsp; &nbsp;If Keys = 1&nbsp; &#039; key W<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;c.setX(c.getX() + (3 * Cos((d.getY()) * 3.14 / 180)))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;c.setZ(c.getZ() - (3 * Sin((d.getY()) * 3.14 / 180)))<br />&nbsp; &nbsp;End If<br />&nbsp; &nbsp; <br />&#039;&nbsp; .... analog key S<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; If Keys = 4&nbsp; &#039; key A<br />&nbsp; &nbsp;&nbsp; &nbsp;d.setY(d.getY() - 5) ;<br />&nbsp; &nbsp; End If<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <br />&nbsp; &nbsp; boxnodgr.SetPosition(c)<br />&nbsp; &nbsp; boxnodgr.SetRotation(d)<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; smgr.drawAll()<br />&nbsp; &nbsp; &nbsp; &nbsp;driver.endScene()<br />&nbsp; &nbsp; keys=0<br />Wend<br />&#039;-------------------------------------------- MAIN ----------------------------------------------------------------------------</p><p>my code do not work.<br />i&nbsp; can move in x,z . But when i rotate my object i move in x,y way, not to the way where i have rotate it.</p><br /><p>Sorry for my bad english......</p>]]></content>
			<author>
				<name><![CDATA[detvog]]></name>
				<uri>https://gprogs.com/profile.php?id=241</uri>
			</author>
			<updated>2009-01-31T10:28:32Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1350#p1350</id>
		</entry>
</feed>
