Skip to main content

Unity Physics



To have convincing physical behaviour, an object in a game must accelerate correctly and be affected by collisions, gravity and other forces. Unity’s built-in physics engines provide components that handle the physical simulation for you. With just a few parameter settings, you can create objects that behave passively in a realistic way (ie, they will be moved by collisions and falls but will not start moving by themselves). By controlling the physics from scripts, you can give an object the dynamics of a vehicle, a machine, or even a piece of fabric. This section gives an overview of the main physics components in Unity, with links for further reading.

Note: there are actually two separate physics engines in Unity: one for 3D physics, and one for 2D physics. The main concepts are identical between the two engines (except for the extra dimension in 3D), but they are implemented using different components. For example, there is Rigidbody component for 3D physics and an analogous Rigidbody 2D for 2D physics.

Comments

Popular posts from this blog

Animation

Unity’s Animation features include retargetable animations, full control of animation weights at runtime, event calling from within the animation playback, sophisticated state machine hierarchies and transitions, blend shapes for facial animations, and much more. Read this section to find out how to import and work with imported animation, and how to animate objects, colours, and any other parameters within Unity itself.     To find out how to import and work with imported animation, and how to animate objects, colours, and any other parameters within Unity. Animation Clips | Controllers | Reference

Unity 2D

This section contains documentation for users developing 2D games in Unity. Note that many areas of the Unity documentation apply to both 2D and 3D development; this section focuses solely on 2D-specific features and functionality. See documentation on 2D and 3D mode settings for information on how to change the 2D/3D mode how the modes differ. See 2D or 3D Projects if you’re not sure whether you should be working in 2D or 3D.

Animation Controllers

An Animator Controller allows you to arrange and maintain a set of animations for a character or other animated Game Object. The controller has references to the animation clips used within it, and manages the various animation states and the transitions between them using a so-called State Machine, which could be thought of as a kind of flow-chart, or a simple program written in a visual programming language within Unity. The following sections cover the main features that Mecanim provides for controlling and sequencing your animations. W3.CSS Gallery ❮ ❯ Animation Interface Graphics Scripts References