Delphi持ってるならGLSceneを使え
at TECH
46:デフォルトの名無しさん
07/01/23 00:48:04
>>44
publishedじゃないけど、AbsolutePositionプロパティ(TVector型)があるよ。
TVector型は配列になっていて、
(X,Y,Z) = (AbsolutePosition[0], AbsolutePosition[1], AbsolutePosition[2])
となっています。
・・・以下、使用例。GLCube1の位置について、GLCube2からの相対座標を割り出す。
usesに「VectorGeometry」を追加(TVectorが定義されている)
//GLCube1の絶対座標をGLCube2の相対座標にする。
var
LocalPosition:TVector;
begin
LocalPosition:=GLCube2.AbsoluteToLocal(GLCube1.AbsolutePosition);
end;
次ページ続きを表示1を表示最新レス表示スレッドの検索類似スレ一覧話題のニュースおまかせリスト▼オプションを表示暇つぶし2ch
5079日前に更新/95 KB
担当:undef