UNPKG

duckengine

Version:
85 lines 134 kB
<!DOCTYPE html><html class="default no-js"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>UI | DuckEngine - v2.1.0</title><meta name="description" content="Documentation for DuckEngine - v2.1.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">DuckEngine - v2.1.0</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">DuckEngine - v2.1.0</a></li><li><a href="../modules/core_gameobjects_ui_ui.html">core/gameobjects/ui/ui</a></li><li><a href="core_gameobjects_ui_ui.UI.html">UI</a></li></ul><h1>Class UI&lt;t&gt;</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-type-parameters"><h3>Type parameters</h3><ul class="tsd-type-parameters"><li><h4>t<span class="tsd-signature-symbol">: </span><a href="../modules/index.Duck.html" class="tsd-signature-type" data-tsd-kind="Namespace">Duck</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.html" class="tsd-signature-type" data-tsd-kind="Namespace">Types</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.Texture.html" class="tsd-signature-type" data-tsd-kind="Namespace">Texture</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.Texture.html#Type" class="tsd-signature-type" data-tsd-kind="Type alias">Type</a></h4></li></ul></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><a href="core_gameobjects_gameObject.GameObject.html" class="tsd-signature-type" data-tsd-kind="Class">GameObject</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">t</span><span class="tsd-signature-symbol">&gt;</span><ul class="tsd-hierarchy"><li><span class="target">UI</span><ul class="tsd-hierarchy"><li><a href="core_gameobjects_ui_button.Button.html" class="tsd-signature-type" data-tsd-kind="Class">Button</a></li><li><a href="core_gameobjects_ui_imageRect.ImageRect.html" class="tsd-signature-type" data-tsd-kind="Class">ImageRect</a></li><li><a href="core_gameobjects_ui_panel.Panel.html" class="tsd-signature-type" data-tsd-kind="Class">Panel</a></li><li><a href="core_gameobjects_ui_text.Text.html" class="tsd-signature-type" data-tsd-kind="Class">Text</a></li></ul></li></ul></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-overwrite"><a href="core_gameobjects_ui_ui.UI.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section tsd-is-inherited"><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#attachOffset" class="tsd-kind-icon">attach<wbr/>Offset</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#attachedChildren" class="tsd-kind-icon">attached<wbr/>Children</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#bounds" class="tsd-kind-icon">bounds</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#collider" class="tsd-kind-icon">collider</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#collidesWith" class="tsd-kind-icon">collides<wbr/>With</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#culled" class="tsd-kind-icon">culled</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#enabled" class="tsd-kind-icon">enabled</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#game" class="tsd-kind-icon">game</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#h" class="tsd-kind-icon">h</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#hitbox" class="tsd-kind-icon">hitbox</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#id" class="tsd-kind-icon">id</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#isAttached" class="tsd-kind-icon">is<wbr/>Attached</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#options" class="tsd-kind-icon">options</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#physics" class="tsd-kind-icon">physics</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#position" class="tsd-kind-icon">position</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#r" class="tsd-kind-icon">r</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#scene" class="tsd-kind-icon">scene</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#shape" class="tsd-kind-icon">shape</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#texture" class="tsd-kind-icon">texture</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#velocity" class="tsd-kind-icon">velocity</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#visible" class="tsd-kind-icon">visible</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#w" class="tsd-kind-icon">w</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#zIndex" class="tsd-kind-icon">z<wbr/>Index</a></li></ul></section><section class="tsd-index-section tsd-is-inherited"><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#_draw" class="tsd-kind-icon">_draw</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#_update" class="tsd-kind-icon">_update</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#accelerateVelocity" class="tsd-kind-icon">accelerate<wbr/>Velocity</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#applyFriction" class="tsd-kind-icon">apply<wbr/>Friction</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#applyGravity" class="tsd-kind-icon">apply<wbr/>Gravity</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#attachChild" class="tsd-kind-icon">attach<wbr/>Child</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#attachTo" class="tsd-kind-icon">attach<wbr/>To</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#autoFitHitbox" class="tsd-kind-icon">auto<wbr/>Fit<wbr/>Hitbox</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#bounceVelocityBounds" class="tsd-kind-icon">bounce<wbr/>Velocity<wbr/>Bounds</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#detachChild" class="tsd-kind-icon">detach<wbr/>Child</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#detachFrom" class="tsd-kind-icon">detach<wbr/>From</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#getBottom" class="tsd-kind-icon">get<wbr/>Bottom</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#getCenter" class="tsd-kind-icon">get<wbr/>Center</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#getCenterX" class="tsd-kind-icon">get<wbr/>CenterX</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#getCenterY" class="tsd-kind-icon">get<wbr/>CenterY</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#getLeft" class="tsd-kind-icon">get<wbr/>Left</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#getRight" class="tsd-kind-icon">get<wbr/>Right</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#getTop" class="tsd-kind-icon">get<wbr/>Top</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#isColliding" class="tsd-kind-icon">is<wbr/>Colliding</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#isCollidingGroup" class="tsd-kind-icon">is<wbr/>Colliding<wbr/>Group</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#reflectVelocity" class="tsd-kind-icon">reflect<wbr/>Velocity</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#scaleHitbox" class="tsd-kind-icon">scale<wbr/>Hitbox</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#setEnabled" class="tsd-kind-icon">set<wbr/>Enabled</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#setFillColor" class="tsd-kind-icon">set<wbr/>Fill<wbr/>Color</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#setScale" class="tsd-kind-icon">set<wbr/>Scale</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#setType" class="tsd-kind-icon">set<wbr/>Type</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#setVelocity" class="tsd-kind-icon">set<wbr/>Velocity</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#setVelocityX" class="tsd-kind-icon">set<wbr/>VelocityX</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#setVelocityY" class="tsd-kind-icon">set<wbr/>VelocityY</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="core_gameobjects_ui_ui.UI.html#setVisible" class="tsd-kind-icon">set<wbr/>Visible</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-overwrite"><a id="constructor" class="tsd-anchor"></a><h3>constructor</h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">new UI<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">t</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>shape<span class="tsd-signature-symbol">: </span><a href="../modules/index.Duck.Types.Collider.html#ShapeString" class="tsd-signature-type" data-tsd-kind="Type alias">ShapeString</a>, x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, r<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, texture<span class="tsd-signature-symbol">: </span><a href="core_texture_texture.Texture.html" class="tsd-signature-type" data-tsd-kind="Class">Texture</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">t</span><span class="tsd-signature-symbol">&gt;</span>, game<span class="tsd-signature-symbol">: </span><a href="core_game.Game.html" class="tsd-signature-type" data-tsd-kind="Class">Game</a>, scene<span class="tsd-signature-symbol">: </span><a href="core_scene.Scene.html" class="tsd-signature-type" data-tsd-kind="Class">Scene</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="core_gameobjects_ui_ui.UI.html" class="tsd-signature-type" data-tsd-kind="Class">UI</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">t</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#constructor">constructor</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/gameobjects/ui/ui.ts#L10">core/gameobjects/ui/ui.ts:10</a></li></ul></aside><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>t<span class="tsd-signature-symbol">: </span><a href="../modules/index.Duck.html" class="tsd-signature-type" data-tsd-kind="Namespace">Duck</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.html" class="tsd-signature-type" data-tsd-kind="Namespace">Types</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.Texture.html" class="tsd-signature-type" data-tsd-kind="Namespace">Texture</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.Texture.html#Type" class="tsd-signature-type" data-tsd-kind="Type alias">Type</a></h4></li></ul><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>shape: <a href="../modules/index.Duck.Types.Collider.html#ShapeString" class="tsd-signature-type" data-tsd-kind="Type alias">ShapeString</a></h5></li><li><h5>x: <span class="tsd-signature-type">number</span></h5></li><li><h5>y: <span class="tsd-signature-type">number</span></h5></li><li><h5>w: <span class="tsd-signature-type">number</span></h5></li><li><h5>h: <span class="tsd-signature-type">number</span></h5></li><li><h5>r: <span class="tsd-signature-type">number</span></h5></li><li><h5>texture: <a href="core_texture_texture.Texture.html" class="tsd-signature-type" data-tsd-kind="Class">Texture</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">t</span><span class="tsd-signature-symbol">&gt;</span></h5></li><li><h5>game: <a href="core_game.Game.html" class="tsd-signature-type" data-tsd-kind="Class">Game</a></h5></li><li><h5>scene: <a href="core_scene.Scene.html" class="tsd-signature-type" data-tsd-kind="Class">Scene</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="core_gameobjects_ui_ui.UI.html" class="tsd-signature-type" data-tsd-kind="Class">UI</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">t</span><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group tsd-is-inherited"><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="attachOffset" class="tsd-anchor"></a><h3>attach<wbr/>Offset</h3><div class="tsd-signature tsd-kind-icon">attach<wbr/>Offset<span class="tsd-signature-symbol">:</span> <a href="core_math_vector2.Vector2.html" class="tsd-signature-type" data-tsd-kind="Class">Vector2</a></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#attachOffset">attachOffset</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L166">core/physics/physicsBody.ts:166</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>PhysicsBody</p> </dd><dt>description</dt><dd><p>The offset between the PhysicsBody that self is attached to</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="attachedChildren" class="tsd-anchor"></a><h3>attached<wbr/>Children</h3><div class="tsd-signature tsd-kind-icon">attached<wbr/>Children<span class="tsd-signature-symbol">:</span> <a href="core_physics_physicsBody.PhysicsBody.html" class="tsd-signature-type" data-tsd-kind="Class">PhysicsBody</a><span class="tsd-signature-symbol">&lt;</span><a href="../modules/index.Duck.html" class="tsd-signature-type" data-tsd-kind="Namespace">Duck</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.html" class="tsd-signature-type" data-tsd-kind="Namespace">Types</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.Texture.html" class="tsd-signature-type" data-tsd-kind="Namespace">Texture</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.Texture.html#Type" class="tsd-signature-type" data-tsd-kind="Type alias">Type</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#attachedChildren">attachedChildren</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L158">core/physics/physicsBody.ts:158</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>PhysicsBody</p> </dd><dt>description</dt><dd><p>PhysicsBodies that are attached</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="bounds" class="tsd-anchor"></a><h3>bounds</h3><div class="tsd-signature tsd-kind-icon">bounds<span class="tsd-signature-symbol">:</span> <a href="../interfaces/index.Duck.Types.Math.BoundsLike.html" class="tsd-signature-type" data-tsd-kind="Interface">BoundsLike</a></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#bounds">bounds</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L133">core/physics/physicsBody.ts:133</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>PhysicsBody</p> </dd><dt>description</dt><dd><p>The bounds of the PhysicsBody</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="collider" class="tsd-anchor"></a><h3>collider</h3><div class="tsd-signature tsd-kind-icon">collider<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="core_physics_models_collider.Collider.html" class="tsd-signature-type" data-tsd-kind="Class">Collider</a></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#collider">collider</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L99">core/physics/physicsBody.ts:99</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>PhysicsBody</p> </dd><dt>description</dt><dd><p>The Collider instance of the PhysicsBody</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="collidesWith" class="tsd-anchor"></a><h3>collides<wbr/>With</h3><div class="tsd-signature tsd-kind-icon">collides<wbr/>With<span class="tsd-signature-symbol">:</span> <a href="../modules/index.Duck.html" class="tsd-signature-type" data-tsd-kind="Namespace">Duck</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.html" class="tsd-signature-type" data-tsd-kind="Namespace">TypeClasses</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.GameObjects.html" class="tsd-signature-type" data-tsd-kind="Namespace">GameObjects</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.GameObjects.html#GameObject" class="tsd-signature-type" data-tsd-kind="Type alias">GameObject</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">t</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> | </span><a href="core_group_group.Group.html" class="tsd-signature-type" data-tsd-kind="Class">Group</a><span class="tsd-signature-symbol">&lt;</span><a href="../modules/index.Duck.html" class="tsd-signature-type" data-tsd-kind="Namespace">Duck</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.html" class="tsd-signature-type" data-tsd-kind="Namespace">TypeClasses</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.GameObjects.html" class="tsd-signature-type" data-tsd-kind="Namespace">GameObjects</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.GameObjects.html#GameObject" class="tsd-signature-type" data-tsd-kind="Type alias">GameObject</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">t</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#collidesWith">collidesWith</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L107">core/physics/physicsBody.ts:107</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>PhysicsBody</p> </dd><dt>description</dt><dd><p>An array or group of GameObjects that can collide with the PhysicsBody</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="culled" class="tsd-anchor"></a><h3>culled</h3><div class="tsd-signature tsd-kind-icon">culled<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#culled">culled</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/gameobjects/gameObject.ts#L51">core/gameobjects/gameObject.ts:51</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>GameObject</p> </dd><dt>description</dt><dd><p>Determines if the GameObject should be visible by the current scene&#39;s current camera</p> </dd><dt>since</dt><dd><p>2.1.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="enabled" class="tsd-anchor"></a><h3>enabled</h3><div class="tsd-signature tsd-kind-icon">enabled<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#enabled">enabled</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L142">core/physics/physicsBody.ts:142</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>PhysicsBody</p> </dd><dt>description</dt><dd><p>Determines if the PhysicsBody._update is called by the Scene.physicsServer used by Scene.physicsList , changing this value does nothing, must use PhysicsBody.setEnabled</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="game" class="tsd-anchor"></a><h3>game</h3><div class="tsd-signature tsd-kind-icon">game<span class="tsd-signature-symbol">:</span> <a href="core_game.Game.html" class="tsd-signature-type" data-tsd-kind="Class">Game</a></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#game">game</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L83">core/physics/physicsBody.ts:83</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>PhysicsBody</p> </dd><dt>description</dt><dd><p>The Game instance</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="h" class="tsd-anchor"></a><h3>h</h3><div class="tsd-signature tsd-kind-icon">h<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#h">h</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L56">core/physics/physicsBody.ts:56</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>PhysicsBody</p> </dd><dt>description</dt><dd><p>The height of the GameObject</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="hitbox" class="tsd-anchor"></a><h3>hitbox</h3><div class="tsd-signature tsd-kind-icon">hitbox<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="core_physics_models_hitbox.Hitbox.html" class="tsd-signature-type" data-tsd-kind="Class">Hitbox</a></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#hitbox">hitbox</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L117">core/physics/physicsBody.ts:117</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>PhysicsBody</p> </dd><dt>description</dt><dd><p>The Collider Hitbox of the PhysicsBody</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="id" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagReadonly">Readonly</span> id</h3><div class="tsd-signature tsd-kind-icon">id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#id">id</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L24">core/physics/physicsBody.ts:24</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>PhysicsBody</p> </dd><dt>description</dt><dd><p>The unique identifier for a GameObject</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="isAttached" class="tsd-anchor"></a><h3>is<wbr/>Attached</h3><div class="tsd-signature tsd-kind-icon">is<wbr/>Attached<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#isAttached">isAttached</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L150">core/physics/physicsBody.ts:150</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>PhysicsBody</p> </dd><dt>description</dt><dd><p>Determines if the PhysicsBody is attached to another PhysicsBody</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="options" class="tsd-anchor"></a><h3>options</h3><div class="tsd-signature tsd-kind-icon">options<span class="tsd-signature-symbol">:</span> <a href="../modules/index.Duck.html" class="tsd-signature-type" data-tsd-kind="Namespace">Duck</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.html" class="tsd-signature-type" data-tsd-kind="Namespace">Types</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.PhysicsBody.html" class="tsd-signature-type" data-tsd-kind="Namespace">PhysicsBody</a><span class="tsd-signature-symbol">.</span><a href="../interfaces/index.Duck.Types.PhysicsBody.Config.html" class="tsd-signature-type" data-tsd-kind="Interface">Config</a></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#options">options</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L75">core/physics/physicsBody.ts:75</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>PhysicsBody</p> </dd><dt>description</dt><dd><p>PhysicsBody config, includes: type - KinematicBody | RigidBody | StaticBody</p> <p>defaults: { type: &#39;KinematicBody&#39;}</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="physics" class="tsd-anchor"></a><h3>physics</h3><div class="tsd-signature tsd-kind-icon">physics<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>addCollider<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>addHitbox<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>setBounds<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#physics">physics</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L176">core/physics/physicsBody.ts:176</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>PhysicsBody</p> </dd><dt>description</dt><dd><p>Object that has all the physics method</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>add<wbr/>Collider<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">add<wbr/>Collider<span class="tsd-signature-symbol">(</span>collidesWith<span class="tsd-signature-symbol">: </span><a href="../modules/index.Duck.html" class="tsd-signature-type" data-tsd-kind="Namespace">Duck</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.html" class="tsd-signature-type" data-tsd-kind="Namespace">TypeClasses</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.GameObjects.html" class="tsd-signature-type" data-tsd-kind="Namespace">GameObjects</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.GameObjects.html#GameObject" class="tsd-signature-type" data-tsd-kind="Type alias">GameObject</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">textureType</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="core_physics_models_collider.Collider.html" class="tsd-signature-type" data-tsd-kind="Class">Collider</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L183">core/physics/physicsBody.ts:183</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>PhysicsBody#physics</p> </dd><dt>description</dt><dd><p>Adds a collider to the PhysicsBody</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>collidesWith: <a href="../modules/index.Duck.html" class="tsd-signature-type" data-tsd-kind="Namespace">Duck</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.html" class="tsd-signature-type" data-tsd-kind="Namespace">TypeClasses</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.GameObjects.html" class="tsd-signature-type" data-tsd-kind="Namespace">GameObjects</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.GameObjects.html#GameObject" class="tsd-signature-type" data-tsd-kind="Type alias">GameObject</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">textureType</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">[]</span></h5><div class="tsd-comment tsd-typography"><div class="lead"> <p>What the GameObject collides with</p> </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="core_physics_models_collider.Collider.html" class="tsd-signature-type" data-tsd-kind="Class">Collider</a></h4></li></ul></li><li class="tsd-parameter"><h5>add<wbr/>Hitbox<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">add<wbr/>Hitbox<span class="tsd-signature-symbol">(</span>w<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, offset<span class="tsd-signature-symbol">?: </span><a href="core_math_vector2.Vector2.html" class="tsd-signature-type" data-tsd-kind="Class">Vector2</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="core_physics_models_hitbox.Hitbox.html" class="tsd-signature-type" data-tsd-kind="Class">Hitbox</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L195">core/physics/physicsBody.ts:195</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>PhysicsBody#physics</p> </dd><dt>description</dt><dd><p>Adds a hitbox to the PhysicsBody</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> w: <span class="tsd-signature-type">number</span></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> h: <span class="tsd-signature-type">number</span></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> offset: <a href="core_math_vector2.Vector2.html" class="tsd-signature-type" data-tsd-kind="Class">Vector2</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="core_physics_models_hitbox.Hitbox.html" class="tsd-signature-type" data-tsd-kind="Class">Hitbox</a></h4></li></ul></li><li class="tsd-parameter"><h5>set<wbr/>Bounds<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">set<wbr/>Bounds<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L206">core/physics/physicsBody.ts:206</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>GameObject#physics</p> </dd><dt>description</dt><dd><p>Adds bounds to the GameObject</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>x: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead"> <p>X position</p> </div></div></li><li><h5>y: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead"> <p>Y position</p> </div></div></li><li><h5>w: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead"> <p>Width of the bounds</p> </div></div></li><li><h5>h: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead"> <p>Height of the bounds</p> </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="position" class="tsd-anchor"></a><h3>position</h3><div class="tsd-signature tsd-kind-icon">position<span class="tsd-signature-symbol">:</span> <a href="core_math_vector2.Vector2.html" class="tsd-signature-type" data-tsd-kind="Class">Vector2</a></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#position">position</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L40">core/physics/physicsBody.ts:40</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>PhysicsBody</p> </dd><dt>description</dt><dd><p>The current global position of the GameObject</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="r" class="tsd-anchor"></a><h3>r</h3><div class="tsd-signature tsd-kind-icon">r<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#r">r</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L64">core/physics/physicsBody.ts:64</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>PhysicsBody</p> </dd><dt>description</dt><dd><p>The radius of the GameObject</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="scene" class="tsd-anchor"></a><h3>scene</h3><div class="tsd-signature tsd-kind-icon">scene<span class="tsd-signature-symbol">:</span> <a href="core_scene.Scene.html" class="tsd-signature-type" data-tsd-kind="Class">Scene</a></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#scene">scene</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L91">core/physics/physicsBody.ts:91</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>PhysicsBody</p> </dd><dt>description</dt><dd><p>The Scene instance</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="shape" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagReadonly">Readonly</span> shape</h3><div class="tsd-signature tsd-kind-icon">shape<span class="tsd-signature-symbol">:</span> <a href="../modules/index.Duck.Types.Collider.html#ShapeString" class="tsd-signature-type" data-tsd-kind="Type alias">ShapeString</a></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#shape">shape</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L32">core/physics/physicsBody.ts:32</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>PhysicsBody</p> </dd><dt>description</dt><dd><p>The shape of the GameObject, &#39;rect&#39;, &#39;circle&#39;, &#39;roundrect&#39;, or &#39;sprite&#39;</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="texture" class="tsd-anchor"></a><h3>texture</h3><div class="tsd-signature tsd-kind-icon">texture<span class="tsd-signature-symbol">:</span> <a href="core_texture_texture.Texture.html" class="tsd-signature-type" data-tsd-kind="Class">Texture</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">t</span><span class="tsd-signature-symbol">&gt;</span></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#texture">texture</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/gameobjects/gameObject.ts#L27">core/gameobjects/gameObject.ts:27</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>GameObject</p> </dd><dt>description</dt><dd><p>The texture of the GameObject</p> </dd><dt>since</dt><dd><p>1.0.0-beta</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="velocity" class="tsd-anchor"></a><h3>velocity</h3><div class="tsd-signature tsd-kind-icon">velocity<span class="tsd-signature-symbol">:</span> <a href="core_math_vector2.Vector2.html" class="tsd-signature-type" data-tsd-kind="Class">Vector2</a></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#velocity">velocity</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/physics/physicsBody.ts#L125">core/physics/physicsBody.ts:125</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>PhysicsBody</p> </dd><dt>description</dt><dd><p>The velocity of the PhysicsBody</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="visible" class="tsd-anchor"></a><h3>visible</h3><div class="tsd-signature tsd-kind-icon">visible<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObject.html">GameObject</a>.<a href="core_gameobjects_gameObject.GameObject.html#visible">visible</a></p><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/gameobjects/gameObject.ts#L35">core/gameobjects/gameObject.ts:35</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>GameObject</p> </dd><dt>description</dt><dd><p>Determines if a GameObject should be rendered or not (note: Camera.cull and autoCull overwrite this property)</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="w" class="tsd-anchor"></a><h3>w</h3><div class="tsd-signature tsd-kind-icon">w<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><p>Inherited from <a href="core_gameobjects_gameObject.GameObj