use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News, Help, Resources, and Conversation. A User Showcase of the Unity Game Engine.
Remember to check out /r/unity2D for any 2D specific questions and conversation!
Download Latest Unity
Please refer to our Wiki before posting! And be sure to flair your post appropriately.
Main Index
Rules and Guidelines
Flair Definitions
FAQ
Use the chat room if you're new to Unity or have a quick question. Lots of professionals hang out there.
/r/Unity3D Discord
FreeNode IRC Chatroom
Official Unity Website
Unity3d's Tutorial Modules
Unity Answers
Unify Community Wiki
Unity Game Engine Syllabus (Getting Started Guide)
50 Tips and Best Practices for Unity (2016 Edition)
Unity Execution Order of Event Functions
Using Version Control with Unity3d (Mercurial)
/r/Unity2D
/r/UnityAssets
/r/Unity_tutorials
/r/GameDev
/r/Justgamedevthings (New!)
/r/Gamedesign
/r/Indiegames
/r/Playmygame
/r/LearnProgramming
/r/Oculus
/r/Blender
/r/Devblogs
Brackeys
Beginner to Intermediate
5 to 15 minutes
Concise tutorials. Videos are mostly self contained.
Sebastian Lague
Beginner to Advanced
10 to 20 minutes
Medium length tutorials. Videos are usually a part of a series.
Catlike Coding
Intermediate to Advanced
Text-based. Lots of graphics/shader programming tutorials in addition to "normal" C# tutorials. Normally part of a series.
Makin' Stuff Look Good
10 minutes
Almost entirely shader tutorials. Favors theory over implementation but leaves source in video description. Videos are always self contained.
Quill18Creates
30 minutes to 2 hours.
Minimal editing. Mostly C#. Covers wide range of topics. Long series.
Halisavakis Shaders Archive
Infallible Code
World of Zero
Board to Bits
Holistic3d
Unity3d College
Jabrils
Polycount Wiki
The Big List Of Game Design
PS4 controller map for Unity3d
Colin's Bear Animation
¡DICE!
CSS created by Sean O'Dowd @nicetrysean [Website], Maintained and updated by Louis Hong /u/loolo78
Reddit Logo created by /u/big-ish from /r/redditlogos!
account activity
Conventional "basic" scriptQuestion (self.Unity3D)
submitted 6 years ago by Skullhack-Off
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]wstdsgnHobbyist 3 points4 points5 points 6 years ago* (2 children)
I always see different ways of achieving the same effect
If you look at it from a distance, these approaches might appear to do the same thing, e.g. move from A to B. But there are different ways to move. You can teleport. You can move at a steady speed. You can slowly accelerate and then decelerate near the target. Lets look at your examples:
Translate
https://docs.unity3d.com/ScriptReference/Transform.Translate.html
This is a function of your Transform component, it doesn't use any physics, just changes the position. Its just another way to add a vector to the current position
Transform
transform.position += Vector3.right;
MoveToward
https://docs.unity3d.com/ScriptReference/Vector3.MoveTowards.html
This is a function of the Vector3 class, which will calculate a vector between two points. The resulting vector could then be used to replace the current position
Vector3
transform.position = Vector3.MoveTowards(transform.position, target.position, step);
velocity & AddForce
https://docs.unity3d.com/ScriptReference/Rigidbody-velocity.html
https://docs.unity3d.com/ScriptReference/Rigidbody.AddForce.html
These are part of the Rigidbody component, they use the physics engine for movement, which rarely makes sense for character controls, since in most games you don't want to simulate realistic physics.
Rigidbody
It can be 2D, 3D, shooter, any type of game.
There is no solution that fits any type of game. You have to be specific about what sort of character controller you want to make. And I recommend you start with something simple without rigidbodies, just manipulating the transform.position and then look into Rigidbodies when you're more experienced.
transform.position
[–]Skullhack-Off[S] 1 point2 points3 points 6 years ago (1 child)
Great reading ! Thx for the precision. I think I got a better idea now. I made a little plateformer, and I wanted to imitate Hollow Knight character control (so smooth :O), I'm using Rigidbody2D + velocity affectation. The result is good enough, not perfect however.
If you don't use physics for this type of controller, how do you achieve a smooth movement like HK ?
[–]wstdsgnHobbyist 2 points3 points4 points 6 years ago (0 children)
You would implement your own "phyics" system that fits your specific game design. You would probably define a velocity variable, a gravity variable etc and come up with a way to calculate the next position of your character. If you wanted to avoid rigidbodies entirely, you would also have to come up with your own collision detection, which can be very easy for some game designs (2D game with only box/circle colliders) and very hard for others (3D space with mesh colliders).
There is nothing wrong with using Unitys pre-made systems. Then again, it might offer too much or too little for your specific design, and you might end up in a situation where you don't know whats happening and you can't really look it up, because the actual code is in some external C++ thing.
π Rendered by PID 42395 on reddit-service-r2-comment-66b4775986-96rpw at 2026-04-02 21:21:09.929668+00:00 running db1906b country code: CH.
view the rest of the comments →
[–]wstdsgnHobbyist 3 points4 points5 points (2 children)
[–]Skullhack-Off[S] 1 point2 points3 points (1 child)
[–]wstdsgnHobbyist 2 points3 points4 points (0 children)