[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-692354-105":59,"doc-detail-692354-en":130,"doc-similar-692354":166},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","unity-playground-script-reference-guide-movement-scripts","Unity Playground Script Reference Guide - Movement scripts","","Unity Playground Script Reference Guide provides educators and developers with a script-by-script explanation of how to use Unity Playground, focusing on movement and related gameplay behaviors. It outlines core requirements such as Rigidbody2D, Collider2D, and Camera components, then explains how each movement script operates through physics, vectors, forces, rotation on the Z axis, and camera tracking. The guide also covers practical setup notes and common design tips for building responsive player and hazard interactions.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/unity-playground-script-reference-guide-movement-scripts/692354/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/unity-playground-script-reference-guide-movement-scripts/692354.png","ImageObject",300,407,{"name":92,"@type":93},"Fahsai","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-15","2026-11-09",true,{"@type":102,"interactionType":103,"userInteractionCount":24},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What components are typically required for movement scripts in Unity Playground?","Question",{"text":112,"@type":113},"Most movement scripts rely on physics, so they almost all require a Rigidbody2D to produce movement. Some also need Collider2D so objects can interact with others.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does Auto Move control object motion?",{"text":117,"@type":113},"AutoMove applies a continuous force to a GameObject. Direction is defined using a Vector2 that includes both direction and strength, and it can be absolute or relative to the object’s rotation.",{"name":119,"@type":110,"acceptedAnswer":120},"Why should Camera Follow be added to the camera instead of the followed object?",{"text":121,"@type":113},"CameraFollow is intended for action-adventure style cameras centered on the player. The guide specifies to add the script to the Camera, not to the object being followed, and then assign the followed target in the scene.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},692354,1794195629,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":24,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":24,"preview_urls":145},549768702563,"https://ap-avatar.wpscdn.com/avatar/8000c4aa63b76e948b?x-image-process=image/resize,m_fixed,w_180,h_180&k=1786536092046926083","Introduction  \nThis document goes in depth about all the scripts one by one, and is intended for educators or for developers who want to know more about the Unity Playground.  \nFor basic information about the Playground and how to get started with it, please check the Getting Started guide (on the Learn website, included in the Playground as a PDF, or online here) .  \nTable of Contents  \nIntroduction 1  \nTable of Contents 2  \nMovement scripts 4  \nAuto Move 4  \nAuto Rotate 6  \nCamera Follow 7  \nFollow Target 9  \nJump 10  \nMove 11  \nPatrol 13  \nPush 15  \nRotate 17  \nWander 18  \nGameplay scripts 19  \nObjectCreatorArea 19  \nObjectShooter 20  \nProjectile IDs 21  \nPickUpAnd Hold 22  \nTimedSelfDestruct 23  \nAttributes 24  \nBulletAttribute 24  \nCollectableAttribute 25  \nDestroyForPointsAttribute 26  \nHealthSystemAttribute 27  \nModifyHealthAttribute 28  \nResourceAttribute 29  \nDefining resource types 30  \nConditions 31  \nGameplay Actions 31  \nCustom Actions 32  \nConditionArea 34  \nConditionCollision 35  \nConditionKeyPress 36  \nConditionRepeat 37  \nActions 38  \nAdding and removing Actions 38  \nConsumeResourceAction 39  \nCreateObjectAction 40  \nDestroyAction 41  \nDialogueBalloonAction 42  \nLoad LevelAction 44  \nOnOffAction 45  \nTeleportAction 46  \nMovement scripts  \nThis category of scripts is all about moving GameObjects around, whether it is the player, hazards, or non-playing characters.  \nBeing the Playground all based on physics, they almost all require a Rigidbody2D to produce movement, and potentially some type of Collider2D if you want the object to be able to interact with others.  \nAuto Move Requires: Rigidbody2D  \nAutoMove applies a continuous force to GameObject. Useful for things such as rockets, arrows, and other self propelled objects.  \nThe direction is expressed through a Vector2 and includes the strength, and it can be absolute or relative to the object's rotation.  \nIn the Scene view, a green arrow gizmo represents the direction of the push, while its size represents the strength.  \nNote: If you are considering using this script on an prefab created with the help of the Object Shooter script, remember that Object Shooter already applies a force to objects when shooting them. In case of a non self-propelled object (like a catapult rock), you don't need Auto Move on the projectile.  \nAuto Rotate Requires: Rigidbody 2D  \nAutoRotation applies a continuous rotation to a GameObject on the Z axis. It can be used to add movement to a decorative object, but also to create rotating obstacles in conjunction with a ConditionCollision script. You can specify the speed, and setting a negative one makes the object rotate counter-clockwise.  \nIn the Scene view, a green arrow gizmo represents the direction of the rotation.  \nCamera Follow Requires: Camera  \nUse CameraFollow on a GameObject that has a Camera component. This is useful for action adventure games where the camera is centred on the Player. Assign a moving GameObject in the scene as the Target.  \nNote: Add this script to the Camera, not to the object being followed!  \nIf you tick the property Use Bounds, you will be able to constrain t he movement of the Camera to a rectangle.  \nYou can adjust the values of the bounds through the Inspector or in the Scene View with the yellow rectangle gizmo:  \nFollow Target Requires: Rigidbody2D  \nFollowTarget forces the GameObject to follow a specified target indefinitely.  \nThe Look at target option allows to select if the object orients itself to look at the target. See the Move script for more information on it.  \nTip: You can assign this script to an enemy and use the player as a target to create a constant threat, or you can create a queue of characters by chaining them to eachother with a series of Follow Target scripts.  \nJump  \nRequires: Rigidbody2D (and a Collider to be able to land!)  \nA simple script that propels an object upwards when a specific key is pressed, useful to create a jump behaviour. The Key property is the keyboard","cbCairn08QVQLvPR","https://ap.wps.com/l/cbCairn08QVQLvPR","pdf",2094331,46,"English","# Introduction\n# Table of Contents\n# Movement scripts\n## Auto Move\n## Auto Rotate\n## Camera Follow\n## Follow Target\n## Jump\n## Move\n## Patrol\n## Push\n## Rotate\n## Wander\n# Gameplay scripts","[{\"question\":\"What components are typically required for movement scripts in Unity Playground?\",\"answer\":\"Most movement scripts rely on physics, so they almost all require a Rigidbody2D to produce movement. Some also need Collider2D so objects can interact with others.\"},{\"question\":\"How does Auto Move control object motion?\",\"answer\":\"AutoMove applies a continuous force to a GameObject. Direction is defined using a Vector2 that includes both direction and strength, and it can be absolute or relative to the object’s rotation.\"},{\"question\":\"Why should Camera Follow be added to the camera instead of the followed object?\",\"answer\":\"CameraFollow is intended for action-adventure style cameras centered on the player. The guide specifies to add the script to the Camera, not to the object being followed, and then assign the followed target in the scene.\"}]","Unity Playground Script Reference Guide - Movement scripts | PDF",116,[146,150,154,158,162],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/2df85c23f4785dcf237a4499dc2c035f.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/e9524f9c242a53e16c02c10599e2cd18.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/a58a8c3aa924d0ec4235a85f68347943.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/0907830ef36835b27337ee2a21535b70.webp",980,1268,{"page_no":24,"url":163,"width":164,"height":165},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/c91978e976e3b01ce133b42f38e1756e.webp",979,1267,{"list":167,"token":66},[168,174,180,186,192,199,205,211,217,223],{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":24,"category_name":30,"create_tm":173},692351,"Getting Started with Unity Playground","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003283460/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111639&Signature=UZlV90%2BB0HS3j2qtJxdiBJ6cTPg%3D","getting-started-with-unity-playground",1794195621,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":81,"category_name":30,"create_tm":179},692353,"Learning 2D Game Development with Unity - A Hands-On Guide to Game Creation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003283513/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111639&Signature=WKU52hrG3X%2F7WTRtjouDPwWAsOE%3D","learning-2d-game-development-with-unity-a-hands-on-guide-to-game-creation",1794195627,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":44,"category_name":30,"create_tm":185},688378,"Maxon Cinema 4D R20 - Shortcut list tips","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001277035/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111639&Signature=%2F6W5O%2BZyUNkZS%2FFCUhodgb310XI%3D","maxon-cinema-4d-r20-shortcut-list-tips",1794088088,{"doc_id":187,"doc_title":188,"file_type":137,"home_preview_img_url":189,"slug":190,"view_count":14,"category_name":30,"create_tm":191},705089,"C# Game Programming Cookbook for Unity 3D","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230014616017/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111639&Signature=LzNgKJn0ot%2FZx5hRQxJbdeV4%2Fv4%3D","c-game-programming-cookbook-for-unity-3d",1794682990,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":197,"category_name":30,"create_tm":198},434236,"Unity 2020 By Example - Third Edition - A project-based guide to building 2D, 3D, augmented reality, and virtual reality games from scratch","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229923649972/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111639&Signature=vnZZqSx%2B9ZwyVp5xhefWK82%2BaIM%3D","unity-2020-by-example-third-edition-a-project-based-guide-to-building-2d-3d-augmented-reality-and-virtual-reality-games-from-scratch",15,1790668001,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":81,"category_name":30,"create_tm":204},684421,"THE RUSSIAN CAMPAIGN - Rules Booklet - 11.12.2020","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000061416/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111639&Signature=MOIafZWQTkQiuap%2F3%2BjHBWZge%2F0%3D","the-russian-campaign-rules-booklet-11122020",1794004823,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":81,"category_name":30,"create_tm":210},708081,"Guidebook - About This Guidebook","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230015739968/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111639&Signature=Rek%2BMyIp81xcj4GpFJP8JHCnDGI%3D","guidebook-about-this-guidebook",1794708888,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":197,"category_name":30,"create_tm":216},364743,"VX Series Install Guide - read online free","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229913070373/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111639&Signature=F4N0%2F%2FedEGtJ%2FAFwobCr0Vr02Kw%3D","vx-series-install-guide-read-online-free",1790158878,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":52,"category_name":30,"create_tm":222},323722,"How Earth Moves - Science Lesson","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229908353815/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111639&Signature=QiL9plu3IcNTQsM3X8vJ26Qpnl0%3D","how-earth-moves-science-lesson",1789965980,{"doc_id":224,"doc_title":225,"file_type":137,"home_preview_img_url":226,"slug":227,"view_count":81,"category_name":30,"create_tm":228},692357,"GUI Essentials - Unity Interface Tutorial - Learn Unity GUI Basics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003283750/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111639&Signature=IOd6FCcK%2Fyb5pi5rQuLrQCGboh8%3D","gui-essentials-unity-interface-tutorial-learn-unity-gui-basics",1794195639]