Thymeコマンド・変数・関数リスト

medaka 返信: 2件 4年前

※このページは現在作成中です。これから和訳します(引用:http://www.algodoo.com/forum/viewtopic.php?f=13&t=83&sid=e0cdd1efb00bd0fe4d57361ea4693b82)
なお、編集者でも分からない内容は(?)をつけてます
分かる方編集してください(切実)

App

  • DPI - 1インチ当たりのドット数 - Default: 86(float)
  • HQPolygons - (わかんない)Whether to store polygon distance maps in much larger textures (true) or not (false) - Default: false (boolean)
  • Redo - Redo(やり直し)を実行
  • Undo - Undo(元に戻す)を実行
  • alwaysCalcContacts - 衝突を毎フレーム実行するか否か - Default: false (boolean)
  • autosaveEnable - 一定時間ごとに自動セーブを実行するか否か - Default: true (boolean)
  • autosaveTime - 自動セーブを実行する時間間隔 - Default: 300 (float)
  • borderWidth - オブジェクトの境界線の幅 - Default: 0.1 (float)
  • chainDensityFactor - The multiplier of the default density for chains (2 is 4.0kg/m^2) - Default: 1 (float)
  • checkForUpdates - Whether to check for updates and news each "updateinterval" days (true) or not (false)- Default: true (boolean)
  • dragToolStrength - ドラッグツールの引っ張る強さ - Default: 0.25 (float)
  • drawBCs - ポリゴンの周りに衝突半径を表す円を描画するか否か(開発テスト時に使ってたらしい) - Default: false (boolean)
  • drawBodyCenters - オブジェクトの重心を描画するか否か - Default: false (boolean)
  • drawCables - Whether to show cables (true) or not (false) - Default: false (boolean)
  • drawCollisions - 衝突線を表示するか否か - Default: false (boolean)
  • drawMapOBBs - Whether to show the oriented bounding boxes map (true) or not (false) - Default: false (boolean)
  • drawOBBs - Whether to show the oriented bounding boxes (true) or not (false) - Default: false (boolean)
  • drawParticleCenters - 水粒子の中心を表示するか否か - Default: false (boolean)
  • drawParticleNeighbors - Whether to connect neighbouring particles with green lines(true) or not(false) - Default: false (boolean)
  • drawScaleIndicator - Whether to show the scale (true) or not (false) - Default: true (boolean)
  • drawSelectionOBB - Whether to show the oriented bounding box of all objects selected (true) or not (false) - Default: false (boolean)
  • drawVelocityFactor - The multiplier for velocity lines (shown when BodyCenters are shown) - Default: 0.02 (float)
  • drawVerticies - ポリゴンの各頂点に緑色の点を表示するか否か - Default: false (boolean)
  • enableScriptMenu - スクリプトメニューをアクセス可能にするか否か - Default: true (boolean)
  • fadeColor - The colour objects fade into the background with - Default: [0,0,0] ([Red(float), Green(float), Blue(float)])
  • fadeRotate - The rotational offset objects fade into the background with - Default: 0 (float)
  • fadeScale - The scale objects fade into the background with - Default [0.95,0.95] ([X(float),Y(float)])
  • fadeTranslate - The distance between each fade step - Default [0,0] ([X(float),Y(float)])
  • forceVertexPolygonDrawing - Whether to force drawing of all verticies(true) or not (false) (this also upgrades collisions) - Default: false (boolean)
  • gpuWater - Whether to use hardware surface generation (true) or not (false) - Default: true (boolean)
  • language - GUIの言語 - Default: English (string)
  • laserBroadPhase - Whether to enable increased performance of lasers (true) or not (false) - Default: true (boolean)
  • laserEvents - Whether to enable onHitByLaser and onLaserHit (true) or not (false) - Default: true (boolean)
  • laserResolution - The quality for finite light speed - Default: 10 (float)
  • laserSuperBoost - Allows more ray splits - Default: 1 (float)
  • laserWaterBVH - Whether to increase laser performance against water using bounding volume hierarchies (true) or not (false) - Default: false (boolean)
  • laserWidth - Laser ray size relative to laser body - Default: 0.2 (float)
  • lineWidth - 描画時の線の幅 - Default: 3 (float)
  • marchingSquaresResolution - 開発者もわかんない\(^o^)/ - Default: 1 (float)
  • maxBorderArea - The maximum area relative to the geometry that can be taken up by the border - Default: 0.2 (float)
  • maxBorderAreaSpecial - The maximum area relative to the geometry that can be taken up by the selection border-Default:0.4(float)
  • maxCogs - The maximum number of cogs avaliable on each gear - Default: 128 (integer)
  • maxPointDist - ポリゴンの頂点の間隔。値が小さいほど高精度で細かいポリゴンになる - Default: 0.5 (float)
  • maxPolygonBorderFactor - The width of a polygons border - Default: 0.75 (float)
  • maxSPHSpawn - "液状化"で生成される水粒子の最大数 - Default: 2000 (integer)
  • maxUndo - "やり直し"の最大数 - Default: 40 (integer)
  • metaCutoff - Meta-surface generation cutoff - Default: 0.5 (float)
  • metaWater - Whether meta-surface generation is on (true) or off (false) - Default: true (boolean)
  • minPointDist - The minimum distance between one vertex and another when drawing - Default: 0.15 (float)
  • mousePos - The position of the mouse.
  • numColorsInRainbow - The number of colours each ray splits into - Default: 12 (integer)
  • pointSize - The size of the the points (like vertex points and body centres) - Default: 3 (float)
  • polytoolPreviewColor - The color of the preview area of each polygon - Default: [1,0.5,1,0.4] ([Red(float),Green(float),Blue(float),Alpha(float)])
  • scaleGravityField - Whether to scale field arrows with gravity strength(true) or not(false) - Default: false (boolean)
  • sceneFadeInTime - How long it takes for a scene to fade in - Default: 1 (float)
  • screenshotsWithAlpha - Saves scenes with the alpha channel in tact (transparent screenshots) - Default: false (boolean)
  • showGravityField - Whether to show the gravity field for attraction(true) or not(false) - Default: false (boolean)
  • updateInterval - The news and update checking interval (days) - Default: 1 (integer)
  • waterColor - 水の色 - Default: [0.1,0.1,1,0.7] ([Red(float),Green(float),Blue(float),Alpha(float)])
  • waterElongation - The length a water droplet will extend to - Default: 0.05 (float)
  • waterRefractiveIndex - The reflective-ness of water - Default: 1.33 (float)
  • waterTracerLightness - How bright water tracers are in relation to the colour of the water - Default: 0.75 (float)
  • waterTracerSize - The size of the water tracers - Default: 0.015 (float)
  • waterTracers - The fraction of a water particle that should have a tracer - Default: 0 (integer)

App.Background

  • .cloudOpacity - 雲の不透明度 - Default: 0.95 (float)
  • .cuteClouds - 雲の形を可愛い形にするか否か(動作未確認) - Default: true (boolean)
  • .drawClouds - 雲を表示するか否か - Default: true (boolean)
  • .skyColor - 背景(空)の色 - Default: [0.45,0.55,1,1] (RGB)

App.GUI

  • Rebuild - すべてのGUIをリロード
  • alikeTolerance - "似ているオブジェクトを選択"コマンドで選択できる、異なる値の数の上限 - Default: 0 (integer)
  • allowDrawSelect - 描画(Pキー)で囲うことで図形を選択できるか否か - Default: true (boolean)
  • dragUndo - ドラッグ操作(Dキー)をUndoステップに入れるか否か - Default: true (boolean)
  • drawDragLine - ドラッグ操作(Dキー)中の白線を描画するか否か - Default: true (boolean)
  • drawHingesWhenRunning - シミュレーション再生中にヒンジを描画するか否か - Default: true (boolean)
  • geomGenMinArea - Algodooの開発者も知らない\(^o^)/ - Default: 0.0009 (float)
  • geomGenShrink - Algodooの開発者も知らない\(^o^)/ - Default: 0.0033 (float)
  • geomGenTolerance - Algodooの開発者も知らない\(^o^)/ - Default: 1.2 (float)
  • level - インターフェースのレベル(1:シンプル、2:ミディアム、3:アドバンスト) - Default: 1 (integer)
  • toolGestureSensitivity - ジェスチャー(?)の感度 - Default: 1 (float)
  • toolGestures - マウスを振ることでツールをキャンセルできるか否か - Default: true (boolean)
  • toolSpecificCursors - カーソルの表示をツール別に変えるか否か - Default: true (boolean)
  • trapUser - ユーザーがAlgodooを終了したり、ゲーム内のリンクを開いたり、フルスクリーンにするのを禁止するか否か(?) - Default: false (boolean)
  • useHSL - 色情報にHSVではなくHSLを使うか否か - Default: false (boolean)
  • zoomFactor - ズームイン/アウトの感度 - Default: 0.2 (float)

App.GUI.forces

  • airBuoyancy - 空気浮力を表示するか否か - Default: true (boolean)
  • airBuoyancyText - 空気浮力の矢印に表示するテキスト - Default: -adg (string)
  • airFriction - 空気抵抗を表示するか否か - Default: ture (boolean)
  • airFrictionText - 空気抵抗の矢印に表示するテキスト - Default: -fv (string)
  • attraction - 引力を表示するか否か - Default: true (boolean)
  • attractionText - 引力の矢印に表示するテキスト - Default: A (string)
  • contactCombinationDistance - (わかんない)The distance in screen centimetres(cm) distance before normal visualisation arrows join into one - Default: 1.2 (float)
  • drawForces - 力を表示するか否か - Default: false (boolean)
  • drawNames - 力の矢印にラベルを表示するか否か - Default: true (boolean)
  • drawValues - 力の矢印に数値を表示するか否か - Default: false (boolean)
  • external - スラスターの力を表示するか否か - Default: true (boolean)
  • externalText - スラスターの矢印に表示するテキスト - Default: ext (string)
  • forceScale - 力の矢印の大きさ - Default: 1 (float)
  • friction - 摩擦力を表示するか否か - Default: true (boolean)
  • frictionProjection - 摩擦力を表示する際、実際に押している方向のみを表示する(True)か、両方向に表示する(False)か - Default: true (boolean)
  • frictionText - 摩擦力の矢印に表示するテキスト - Default: T (string)
  • gravity - 重力を表示するか否か - Default: true (boolean)
  • gravityText - 重力の矢印に表示するテキスト - Default: mg (string)
  • hinge - 回転軸の力を表示するか否か - Default: true (boolean)
  • hingeText - 回転軸の矢印に表示するテキスト - Default: H (string)
  • normal -垂直抗力のを表示するか否か - Default: true (boolean)
  • normalText - 垂直抗力の矢印に表示するテキスト - Default: N (string)
  • spring - ばねの力を表示するか否か - Default: true (boolean)
  • springText - ばねの矢印に表示するテキスト - Default: -kx-bv (string)
  • total - 合力を表示するか否か - Default: true
  • totalText - 合力の矢印に表示するテキスト - Default: (string)
  • velScale - 速度の矢印の大きさ - Default: 1 (float)
  • velocities - 速度の矢印を表示するか否か - Default: false (boolean)

App.Grid

  • base - グリッドベース - Default: 4 (integer)
  • grid - グリッドを表示するか否か - Default: false (boolean)
  • numAxes - グリッドの軸の数- Default: 2
  • scale - グリッドのスケール - Default: 2 (float)
  • snap - グリッドにスナップさせるか否か - Default: true (boolean)

Console

コンソールに関する変数群

  • clear - コンソールの文字をすべて消去する
  • color - コンソールの背景色 - Default: [0.1,0.1,0.1,0.8] ([Red(float),Green(float),Blue(float),Alpha(float)])
  • delay - F10を押してからコンソールが出るまでの時間 - Default: 0.3 (float)
  • fade - Whether the console should fade in transparency lengthways (true) or not(false) - Default: false (boolean)
  • print - Print to the console window
  • screenSize - コンソールが画面に占める割合 - Default: 0.35 (float)
  • scroll - コンソールを開いた際に文字をスクロールするか否か - Default: true (boolean)

Defaults

  • borders - Whether to set borders on by default (true) or not (false) for new objects - Default: true (boolean)
  • glueToWorld - Whether to glue new geometries to the background (true) or not (false) - Default: false (boolean)

FileInfo

  • author - シーンの作者 - Default: (string)
  • description - シーンについての説明 - Default: (string)
  • title - シーンのタイトル - Default: (string)
  • version - シーンのバージョン - Default: 6 (integer)

GUI

  • bgColor - GUIの背景色 - Default: [0.2,0.2,0.2,1] ([Red(float),Green(float),Blue(float),Alpha(float)])
  • clickTimeTolerance - How long (time) until a click becomes a hold - Default: 0.3 (float)
  • clickTolerance - How long (distance) until a click becomes a hold - Default: 5 (float)
  • crispFontFactor - フォントの明快さの度合い(デフォルトで十分なので触らないほうがいいらしい) - Default: 0.5 (float)
  • crispFonts - より明快なフォントを使用するか否か - Default: false (boolean)
  • cursor - Whether to have the cursor on (true) or off (false) - Default: true (boolean)
  • cursorFPSLimit - The minimum FPS for non-O/S cursor - Default: 25 (float)
  • fgColor - The foreground colour of the Graphical User Interface - Default: [1,1,1,1]([Red(float),Green(float),Blue(float),Alpha(float)])
  • font - 使用するフォントの種類。arial_blackのみサポートされている(?) - Default: arial_black (string)
  • fontShadow - フォントに影をつけるか否か - Default: true (boolean)
  • forceOSCursor - OSのカーソルをPhun/Algodooのカーソルとして使用するか否か - Default: true (boolean)
  • opacity - GUIの透明度 - Default: 0.8 (float)
  • penInput - clickTolerance and clickTimeTolerance are changed - Default: false (boolean)
  • rightToLeft - Whether to reverse all text (true) or not (false) - Default: false (boolean)
  • scale - GUIのスケール - Default: 1.0 (float)
  • tooltips - ツールチップ(ボタンにカーソルを重ねたときに表示される説明文)を表示するか否か - Default: true (boolean)

Input

  • touchScreenDetection - Detect if there is a touchscreen (don't know, assumption) - Default: true (boolean)
  • touchScreenDetectionGoodCutoff - Attempt to get a better switch (again, not sure) - Default: 30 (integer)
  • touchScreenDetectionRelCutoff - Movements larger than this number are marked errors (again, not sure) - Default: 50 (integer)

Keys

  • bind - Bind a key to an action
  • unbind - Unbind a key from all actions

Reflection

ExecuteCode - Execute specified code from [ROOT] scope
ExecuteFile - Execute plain text in thyme parsing from specified file in [ROOT] scope

Resources

  • force16BitTextures - Force all rendering into 16-bit colours
  • loadAll - Load all resources
  • polyCount - The number of polygons that have been spawned in the current scene
  • polyEntCount - The number of polygons that have been spawned in the current scene
  • polyMeshCount - The number of different polygon meshes that have been spawned in the current scene
  • reloadAll - Reload all resources
  • reloadShaders - Reload just shaders
  • reloadTextures - Reload all textures
  • shaders - Whether anti-aliasing is on(true) or off(false) - Default: false (boolean)
  • snapshotCount - The number of screenshots taken (multi-session)
  • textureCount - The number of different textures loaded in the current session
  • textures - Whether textures (not currently in use) should be used(true) or not (false) - Default: true (boolean)
  • unloadAll - Unload all textures not currently in use
  • vramUsage - How many bytes of video RAM is being used on this scene.

SPH

  • SetClassicSPH - Use the classic compressible model of water
  • SetNewSPH - Use the new incompressible model of water
  • bucketSize - (forgotten)
  • density - The density of water - Default: 1 (float - what a great joke :))
  • friction - The friction of water - Default: 0.01 (float)
  • geomFieldOffset - How far away from geometries the water has to be (anti-hydrophobic :)) - Default: 0.5 (float)
  • geomFriction - How much friction water has when in contact with geometries - Default: 0.001 (float)
  • geomMassMultiplier - This number multiplied with particle mass is the pretended mass of neighbouring geometries - Default: 2 (integer)
  • geometryFields - Better incompressability - Default: false (boolean)
  • incompressible - Better incompressability - Default: false (boolean)
  • influence - How much influence each particle has on its neighbours - Default: 2 (float)
  • jitter - How much particles randomly move around - Default: 0 (float)
  • kernelMultiplier - How close particles can be to each other - Default: 1 (float)
  • kernelNormalize - Not sure - Default: true (boolean)
  • lowMassCollisionRadiusFactor - How close a light object able to get to the water - Default: 0.4 (float)
  • maxNeighbors - The maximum neighbours for a single particle - Default: 64 (integer)
  • minMassFactor - Geometry fields will not be given to objects with lower mass than particle*this - Default: 3 (float)
  • nonPenetration - Not sure again - Default: true (boolean)
  • pressMultiplier - Pressure Multiplier - Default: 1 (float)
  • radius - The radius of a single particle - Default: 0.05 (float)
  • restitution - How bouncy water particles are - Default: 0 (float)
  • solveConst - How frequently solvings for water happen relating to geometries - Default: 1e+006 (float)
  • solveIters - How many iterations of solvings of water happen - Default: 1 (integer)
  • solveT - How frequently solvings for water happen - Default: 0.01 (float)
  • sort - Not sure - Default: false (boolean)
  • soundSpeed - Speed of Sound - Default: 20 (float)
  • specialPressure - Not sure again - Default: true (boolean)
  • spikyKernel - Not sure, keeps water stable - Default: false (boolean)
  • surfaceTension - Applies surface tension - Default: 0 (float)
  • unilateral - Whether to only apply separating forces (true) or not (false) - Default: true (boolean)
  • vaporizeTime - How long an idle particle will remain in the simulation - Default: +inf (float)
  • velocitySmoothing - Not sure, I would assume whether or not velocity is smoothed - Default: true (boolean)
  • viscMultiplier - Viscosity multiplier - Default: 1 (float)
  • viscosity - How viscous a liquid is - Default: 0.5 (float)

Scene

  • clear - Clear the current scene (keep settings)
  • EraseWater - Remove all water from scene
  • MoveToOrigo -Move scene to origin
  • New - Start a new scene (new settings)
  • Open - Open a scene
  • SaveAs - Save current scene as
  • addBox - Add a box to the current scene
  • addCircle - Add a circle to the current scene
  • addFixjoint - Add a fixate to the current scene
  • addGroup - Group objects in the current scene
  • addHinge - Add a hinge to the current scene
  • addLaserPen - Add a laser to the current scene
  • addPen - Add a tracer to the current scene
  • addPlane - Add a plane to the current scene
  • addPolygon - Add a polygon to the current scene
  • addSpring - Add a polygon to the current scene
  • addWater - Add particles to the current scene
  • addWidget - Add a widget (element of GUI) to the current scene
  • author - Who made the scene - Default: (string)
  • description - A short description of the scene - Default: (string)
  • gravityRotationOffset - The rotational offset of gravity - Default: NaN (float)
  • importPhunlet - Import a phunlet to the current scene
  • loadScene - Load a scene
  • my - Scene.my.* class
  • setFilter - Layer filter (which layers are showing at the current point in time)
  • title - The title of the scene - Default: (string)

Scene.camera

  • pan - How far from origin the camera is - Default: [0,0] ([X(float),Y(float)])
  • rotation - How rotated the camera is - Default: 0 (float)
  • smoothFactor - How smoothed movement is - Default: 0.9 (float)
  • smoothPan - Whether to smooth panning (true) or not (false) - Default: true (boolean)
  • smoothRotation - Whether to smooth rotation (true) or not (false) - Default: true (boolean)
  • smoothZoom - Whether to smooth zooming (true) or not (false) - Default: true (boolean)
  • trackRotation - Whether to track the rotation of followed objects (true) or not (false) - Default: false (boolean)
  • zoom - How far zoomed the camera is - Default: 150 (float)

Sim

  • adHocSolver - Whether to use a more primitive solver (true) or not (false) - Default: false (boolean)
  • airDensity - The density of air (heavier fall below) - Default: 0.01 (float)
  • airFrictionLinear - The air friction linear force - Default: 0.01 (float)
  • airFrictionMultiplier - The air friction force multiplier - Default: 1 (float)
  • airFrictionQuadratic - The air friction quadratic force - Default: 0 (float)
  • airSwitch - Whether air is on(true) or not (false) - Default: true (boolean)
  • blockedContactSolver - Whether objects with only a few contacts are solved directly (true) or not (false) -Default: false (boolean)
  • blockedContactSolver2N - Whether objects with only two contacts' normal forces will be solved directly(true) or not(false)- Default: true (boolean)
  • blockedContactSolver2NF - Whether objects with only two contacts' normal and friction forces will be solved directly(true) or not(false) - Default: false (boolean)
  • blockedContactSolver3N - Whether objects with only three contacts' normal forces will be solved directly(true) or not(false) - Default: true (boolean)
  • blockedContactSolver4N - Whether objects with only four contacts' normal forces will be solved directly(true) or not(false) - Default: false (boolean)
  • bodyCount - The number of bodies in the current scene (at the current point in time)
  • bruteColliderCutoff - Not sure - Default: 0 (integer)
  • cableAdaptiveSlack - Whether to adjust stiffness of hinges based on density (true) or not (false) - Default: false (boolean)
  • cableDistanceConstraint - Not sure - Default: true (boolean)
  • cableJacobianScale - How much the force is distributed through the entire object - Default: 1 (float)
  • cableLineConstraint - Whether to increase the strength of a hinge as it pulls further away from it's attatched object(true) or not (false) - Default: true (boolean)
  • cableLineInternalize - Whether to stiffen chains more (false) or not (true) - Default: false (boolean)
  • cableLineSmartChoice - Whether to stiffen chains more (true) or not (false) - Default: true (boolean)
  • cableMaxImpFactor - Not sure - Default: +inf (float)
  • cableMaxMassRation - Not sure - Default: 2 (float)
  • cableMaxSlack - The maximum distance of hinge from attatched object (desired) - Default: 0.1 (float)
  • cableMiliatryConstraint - Whether to use extremely stiff hinges (true) or not (false) - Default: false (boolean)
  • cableSafetyDistance - Not sure - Default: 0 (integer)
  • cables - Whether to use cables (true)(stiffer hinges) or not (false) - Default: true (boolean)
  • defaultBodyDensity - The default for newly spawned geometries' densities - Default: 2 (float)
  • defaultBodyFriction - The default for newly spawned geometries' friction - Default: 0.5 (float)
  • defaultBodyRestitution - The default for newly spawned geometries' restitutions (bounciness) - Default: 0.5 (float)
  • fastPolyAABB - Whether to do an estimation of the polygon axis aligned bounding box - Default: true (boolean)
  • forceContactCalculations - Whether to force all contact calculations to be carried out (true) or not (false) - Default: false (boolean)
  • frequency - The frequency at which the simulation simulates (Hz) - Default: 100 (float)
  • geomCount - The number of geometries in the current scene
  • gravityAngleOffset - The number of radians the scene's gravity is rotated - Default: 0 (float)
  • gravityStrength - The strength of gravity (m/s^2) - Default: 9.8 (float)
  • gravitySwitch - Whether gravity is on (true) or not (false) - Default: true (boolean)
  • largeOverlapTest - Whether to try to treat large overlaps of geometries seperately (true) or not (false) - Default: true (boolean)
  • maxPositionCorrection - Not sure - Default: +inf (float)
  • maxSpringStrength - Maximum recommended spring force - Default: 10 (float)
  • mutipleContactEventPerPair - Whether each contact should get two onCollide actions (true) or not (false) - Default: false (boolean)
  • nyquistFactor - Not sure - Default: 4 (float)
  • optimizeContactSet - Whether to attempt to reduce contact set to minimum value(true) or not (false) - Default: true (boolean)
  • particleCount - How many particles are in the current scene
  • polygonMeshSize - How high quality polygons are (when forcing rendering of all verticies, this is irrelevant) - Default: [128,128] ([(integer),(integer)])
  • rotFrictionLinear - Required force is Nm*this to rotate at desired speed - Default: 0.00314 (float)
  • running - Whether the simulation is running (true) or not (false) - Default: true (boolean)
  • skipDistance - The distance before areas are added to the skip list - Default: 0.15 (float)
  • solveAccFactor - The number of steps to use for solving acceleration - Default: 1 (float)
  • solveConstCables - The solving constant for cables - Default: 1e+008 (float)
  • solveConstant - The solving constant (for physics) - Default: 1e+008 (float)
  • solveDistFactor - The speed at which overlapping objects will exit each other - Default: 1 (float)
  • solveIter - The number of steps to use for solving iterations (stiffer hinges) - Default: 30 (integer)
  • solvePenetrationDamping - Whether to solve using Penetration Damping (true) or not (false) - Default: false (boolean)
  • solvePreSortConstraints - Not sure - Default: true (boolean)
  • solveRandomizeConstraints - Not sure - Default: true (boolean)
  • solveRegularizationFactor - How random constraint movement is - Default: 1 (float)
  • solveReverseConstraints - Whether to alternate order of constraint solving (true) or not (false) - Default: false (boolean)
  • solveStiffIter - How many steps to use for solving stiff hinge iterations - Default: 0 (integer)
  • solveTCables - Delta between cable solvings - Default: 0.05 (float)
  • solveTconstraints - Delta between constraint solvings - Default: 0.05 (float)
  • solveTcontacts - Delta between contact solvings (penetration reaction) - Default: 0.05 (float)
  • solveVelFactor - Solver for velocities - Default: 1 (float)
  • solver - Which solver to use - Default: gs (string)
  • solverSOR - The relaxation of the iteration solver - Default: [1,1,1] ([Beginning(float),Middle(float),End(float)])
  • sortBroadPhasePairs - Whether to sort broad-phase pairs first (true) or not (false) - Default: false (boolean)
  • springForce - The multiplier of the force of a spring - Default: 1000 (float)
  • targetPenetration - The level of penetration to attempt to reach - Default: 0.0001 (float)
  • time - The time the current scene has been running
  • timeFactor - The multiplier for the time that runs in the scene - Default: 1 (float)
  • useSkipLists - Skip testing collisions not close to possible collisions - Default: true (boolean)
  • warmStart - Whether to apply forces at start (false) or not (true) - Default: true (boolean)
  • warmStartFactor - How much warm start to apply - Default: 0.5 (float)

System

  • antiAlias - アンチエイリアスの使用数 - Default: 1 (integer)
  • depth - 色深度 - Default: 32 (integer)
  • exit - Algodooを閉じる
  • fakeFullscreen - 擬似的フルスクリーンにするか否か - Default: true (boolean)
  • frame - フルスクリーンをウィンドウ枠内に収めるか否か - Default: true (boolean)
  • fullscreen - フルスクリーンにするか否か - Default: false (boolean)
  • maxFPS - FPSの上限 - Default: 60 (float)
  • maximized - ウィンドウが最大化されているかどうか - Default: false (boolean)
  • minFPS - FPSの下限 - Default: 10 (float)
  • objectCurrent - 現在のオブジェクトに関する情報
  • objectTotal - Algodooの開発者も知らない\(^o^)/
  • recreateWindow - 新しい解像度でウィンドウを再構築する
  • regularScreenshots - 一定時間ごとにスクショを撮る - Default: 0 (integer)
  • resizable - ウィンドウのリサイズを可能にするか否か - Default: true (boolean)
  • resolution - ウィンドウの解像度 - Default: [800,600] ([X(Integer), Y(Integer)])
  • screenshot - スクショを撮る
  • time - Algodooを開始してからの経過秒数
  • vSync - vSyncがONになっているかどうか - Default: false (boolean)

Tablet

  • hasOrientation - Does the tablet detected have an accelorometer (true) or not (false)
  • hasPressure - Does the tablet detected have pressure sensitivity (true) or not (false)
  • hasTablet - Is there a tablet detected (true) or not (false)
  • improveClickTolerance - Whether to improve tolerance of distance and time of the mouse(true) or not(false)-Default:true(boolean)
  • orientation - What orientation the tablet is at
  • overrideMouseEvents - Whether to override mouse events (true) or not (false) - Default: true (boolean)
  • pressure - What pressure level the current push is at.
  • rightClickOverride - Not sure

Threading

  • numThreads - 稼働させるスレッドの数(?)。検証したけど肝心の物理演算がマルチスレッド未対応なのであまり意味がない - Default: 1 (integer)

WebCam

  • flipHoriz - Whether to flip web camera horizontally (true) or not (false) - Default: false (boolean)
  • flipVert - Whether to flip web camera vertically (true) or not (false) - Default: false (boolean)

math

  • HSL2RGB - HSLをRGBに変換
  • HSV2RGB - HSVをRGBに変換
  • RGB2HSL - RGBをHSLに変換
  • RGB2HSV - RGBをHSVに変換
  • addlist - 配列を結合させる (例:math.addlist([1,2],[3,4]) = [1,2,3,4])
  • acos - sinの逆関数 (例:math.acos( 1/2 ) = math.pi/3 = 1.0471975512… )
  • asin - cosの逆関数 (例:math.asin( 1/2 ) = math.pi/6 = 0.52359877559… )
  • atan - tanの逆関数 (例:math.atan( 1 ) = math.pi/4 = 0.78539816339… )
  • boolnegate - True/falseを入れ替える。"!"と同じ(例:math.boolnegate(true) = false, math.boolnegate(false) = true)
  • sin - サイン
  • cos - コサイン
  • tan - タンジェント
  • add - 足し算 (例:math.add(3,4) = 3+4 = 7)
  • subtract - 引き算(例:math.substract(5,2) = 5-2 = 3)
  • divide - 割り算 (例:math.divide(4,2) = 4/2 = 2)
  • mod - 割り算したときの剰余(例:math.mod(13,10) = 13%10 = 3)
  • multiply - 掛け算 (例:math.multiply(2,3) = 2*3 = 6)
  • sqrt - 平方根 (例:math.sqrt(2) = 1.41421356...)
  • or - 論理和、第1引数と第2引数のどちらかがTrueならTrueを返す (||)
  • and - 論理積、第1引数と第2引数の両方がTrueならTrueを返す (&&)
  • pi - 円周率 (3.1415926535897932384626433832795...)
  • posivate - 値に1を掛ける。特に値が変わらないので何のために有るのか不明
  • negate - 値に-1を掛けて、符号を入れ替える
  • pow - 累乗(例:math.pow(3,2) = 3^2 = 9)
  • toBool - 引数をBoolに変換する。0ならfalse(例:math.toBool(0)= false)
  • toFloat - 浮動小数点数に変換
  • toInt - 整数に変換
  • toString - 文字列型に変換 ( + "")

math.comp

  • eq - 第1引数と第2引数が等しいかどうか (==)
  • ne - 第1引数と第2引数が異なるかどうか (!=)
  • g - 第1引数が第2引数より大きいかどうか (>)
  • ge - 第1引数が第2引数以上かどうか (>=)
  • l - 第1引数が第2引数より小さいかどうか(<)
  • le - 第1引数が第2引数以下かどうか (<=)

その他

  • print - Console.printと同じ。コンソールに文字を追加
  • exit - System.exitと同じ。Algodooを終了する
  • quit - exitとSystem.exitに同じ。Algodooを終了する
  • sin - Math.sinと同じ
  • cos - Math.cosと同じ
  • eval - 現在のスコープで引数のスクリプトを実行
  • if_then_else - If構文 (条件 ? Trueのとき : Falseのとき)

ログインしてください(返信一覧はログイン後に表示されます。)