<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[GMan's Mods & Stuff — a couple TForm functions]]></title>
		<link>https://gprogs.com/viewtopic.php?id=139</link>
		<atom:link href="https://gprogs.com/extern.php?action=feed&amp;tid=139&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in a couple TForm functions.]]></description>
		<lastBuildDate>Tue, 10 Mar 2009 12:49:49 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: a couple TForm functions]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=1398#p1398</link>
			<description><![CDATA[<p>I tried Tformpoint and it works</p>]]></description>
			<author><![CDATA[null@example.com (Slenkar)]]></author>
			<pubDate>Tue, 10 Mar 2009 12:49:49 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=1398#p1398</guid>
		</item>
		<item>
			<title><![CDATA[Re: a couple TForm functions]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=586#p586</link>
			<description><![CDATA[<p>lol.<br />If I knew what it was supposed to do I could have a go at telling you if it worked.</p><p>Does TFormVector work like this,<br />X,Y,Z is a vector form source, (Lets say where the spacestation is from my spaceship)<br />and it returns a vector to the same place from somewhere else? (Say where the station is from my escape capsole)</p><p>Im afraid I cannot see what TFormPoint is doing</p><p>(You&nbsp; probably need people who have used B3d to test it dont you?)</p>]]></description>
			<author><![CDATA[null@example.com (H&K)]]></author>
			<pubDate>Sun, 31 Dec 2006 17:33:10 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=586#p586</guid>
		</item>
		<item>
			<title><![CDATA[a couple TForm functions]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=585#p585</link>
			<description><![CDATA[<p>could someone give these a whirl please and see if the result is what you would expect?&nbsp; it would be very much appreciated.<br /></p><div class="codebox"><pre><code>Function TFormPoint:Vector3df(x:Float,y:Float,z:Float,source:ISceneNode,dest:ISceneNode)
    Local lastTForm:Vector3df=_VECTOR3DF(x,y,z)

    &#039; first convert to world from the source
    If source Then source.getAbsoluteTransformation().transformVect(lastTForm)

    &#039; now from world to local
    If dest Then dest.getRelativeTransformation().transformVect(lastTForm)
    
    Return lastTForm
EndFunction

Function TFormVector:Vector3df(x:Float,y:Float,z:Float,source:ISceneNode,dest:ISceneNode)
    Local v:Vector3df=_VECTOR3DF(x,y,z)

    If source Then 
        source.getRelativeTransformation().transformVect(v)
        v=v.Minus(source.getPosition())
    EndIf
    
    If dest Then dest.getAbsoluteTransformation().transformVect(v)
    Return v
EndFunction</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (gman)]]></author>
			<pubDate>Sun, 31 Dec 2006 15:13:14 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=585#p585</guid>
		</item>
	</channel>
</rss>
