Unity3D Physics April 3, 2015 Comp 150 - Game Design Michael Shah.

Slides:



Advertisements
Similar presentations
Real-Time Game Physics
Advertisements

INNER WORKINGS OF UNITY 3D. WHAT WE ARE GOING TO COVER Intro to Unity Physics & Game Objects Cameras & Lighting Textures & Materials Quaternions and Rotation.
CS4455 Physics Engines Maribeth Gandy Jeff Wilson Clint Doriot
Blender Particle Fluids. Blender Particle Fluids integrate into the existent powerful Blender particle system a fluid simulation tool that allows a wide.
T-FLEX Dynamics is a general- purpose motion simulation add- on application for studying the physics-based motion behavior of a CAD design without leaving.
Mechanical Engineering Dept.
GameCamp! and Game Davis Creating a 2D Platformer in Unity.
Done already for your convenience! Telerik School Academy Unity 2D Game Development.
1 CS 599 Physically Based Modeling for Interactive Simulation and Games Case Study: Havok Engine for Game Physics Jernej Barbic University of Southern.
1 7M836 Animation & Rendering Animation Jakob Beetz Joran Jessurun
1 Advanced Scene Management System. 2 A tree-based or graph-based representation is good for 3D data management A tree-based or graph-based representation.
CS 4730 Physical Simulation CS 4730 – Computer Game Design.
An Introduction to Physics Engines Michael Sundqivst TV10S1M3.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Physically Based Animation.
Physics A First Course Energy and Systems Chapter 5.
Physically Based Animation and Modeling
UFCEKU-20-3Web Games Programming Unity 3D Physics Colliders and Object Collisions.
Modelling and Simulation Dynamics. Dynamics Dynamics is a branch of physics that describes how objects move. Dynamic animation uses rules of physics to.
Unity Lecture Unity Build-in Physics Engine. Unity contains powerful 3D physics engine NVIDIA PhysX Physics. Create immersive and visceral scenes with.
EEC-693/793 Applied Computer Vision with Depth Cameras Lecture 13 Wenbing Zhao
Game Engine Programming. Game Engine Game Engine Rendering Engine (OGRE) Rendering Engine (OGRE) Physics Engine (Bullet) Physics Engine (Bullet) Input/Output.
Spring Rigid Body Simulation. Spring Contents Unconstrained Collision Contact Resting Contact.
Web Games Programming An Introduction to Unity 3D.
NVIDIA PhysX: 物理引擎 (Physics Engine) V-lab Talk 2010/12/03 洪偉瀚.
Review A force is any push or ____________.
Advanced Computer Graphics Rigid Body Simulation Spring 2002 Professor Brogan.
Spring Rigid Body Simulation. Spring Contents Unconstrained Collision Contact Resting Contact.
Computer Game Design and Development
Beyond Bouncing Boxes Fast, yet still Realistic, Deformation and Fracture Jeff Lander Darwin 3D, LLC Luxoflux James O'Brien U. of California, Berkeley.
DYNAMICS Part 2 HOW DOES IT WORK?? by Willis Louie Jianfei Liao.
Advanced Games Development Game Physics CO2301 Games Development 1 Week 19.
Physics Michael Vernier Robert Weekley Michael Ford.
UFCFSU-30-13D Technologies for the Web An Introduction to Unity 3D.
Computer Graphics Imaging Ying Zhu Georgia State University Lecture 29 Soft Bodies and Rigid Bodies.
Advanced Games Development Physics Engines 2 CO2301 Games Development 1 Week 21.
Yingcai Xiao Game Development with Unity3D Inside/Outside Unity3D.
Angry Teapots– using the physics engine in Unity Peter Passmore.
3D Animation 3. Animation Dr. Ashraf Y. Maghari Information Technology Islamic University of Gaza Ref. Book: The Art of Maya.
 Pick up test on table 1 and hold onto it  3 minutes to make compost bin observations  Find your data table to record odor and appearance  Temperature.
Westview HS Physics Courses
Game Development with Unity3D
Advanced Computer Graphics Rigid Body Simulation
Unity 3D Rolfe Bozier 24-Apr-2017
Procedural Animation.
EEC-693/793 Applied Computer Vision with Depth Cameras
Quick Intro to Unity Lecture 2.
Game Development with Unity3D Inside/Outside Unity3D
Done already for your convenience!
3GB3 Game Design Unity 3D Basics.
Unity3D for Mobile Sprites, Camera, Physics
EEC-693/793 Applied Computer Vision with Depth Cameras
Game Design, Development, and Technology
Computer Animation Ying Zhu Georgia State University
Game Development Unity3D.
EEC-693/793 Applied Computer Vision with Depth Cameras
Physics in Games David: Overview of Physics in Games
Physics in Games David: Achieving Fun with Physics
Collision Detection, Prefabs
A Prime Example of HCI Application
CIS 488/588 Bruce R. Maxim UM-Dearborn
Chapter 11 Rolling, Torque, and Angular Momentum
Week 6: Time and triggers!
Instructor: Dr. Tatiana Erukhimova
Fundaments of Game Design
Advanced Games Development Game Physics
EEC-693/793 Applied Computer Vision with Depth Cameras
Unity Game Development
Unity Game Development
GPAT – Chapter 7 Physics.
Presentation transcript:

Unity3D Physics April 3, 2015 Comp Game Design Michael Shah

Physics Topics ●Physics Games o Couple studies of physics gone well ●Physics as the main mechanic o Case study of games ●Unity3D Physics o Tweaking Physics ●Physics Engines o Further items to look at (and appreciate physics)

Realistic Physics ●Goal is to simulate the real world as close as possible.

Realism on a sliding Scale ●Trials HD ●Tony Hawk Pro Skater

Cartoon Physics ●Angry Birds ●Flappy Bird ●Mario

Another reason to Love Unity

Physics as A Mechanic ●Half-Life 2 Gravity Gun ●Portal

Why we need good Physics (This game was probably never tested!)

Unity Physics - The Basics ●Built on top of Nvidia’s PhysX System ●Lets look at the built in components

Colliders ●Box, Sphere, Capsule, and Mesh o OnCollisionEnter, OnCollisionExit, OnCollisionStay ●Colliders as Triggers o OnTriggerEnter, OnTriggerExit, OnTriggerStay ● Detecting a Collision requires at least one of the colliding objects to have a: void OnCollisionEnter(Collider col) method.

Mesh Collider Example

Rigid Body ●Used for moving objects ●Gameobject is effected by Gravity

Force and Torque ●Add Force o Change movement of object ●Add Torque o Rotate object around axis.

Physic Materials ●Physics Materials effect the way the object reacts in the game engine (Basketball versus bowling bowls surface). o Dynamic friction: Effects the object as it moves. o Static Friction: How much force is needed to move an object from a static position (sticky glue-like). o Bounciness: self-explanatory o Friction and Bounce Combine: How to respond to another object during collision.

Joints ●Fixed o Does not move until break force exceeded ●Spring o Hooke’s Law ●Hinge o Doors

Raycasting ●Raycasting: The process of shooting an invisible ray from a point to a specified direction into any colliders. o Use Debug.DrawRay to see where you are casting a ray

Raycast Against Specific GameObjects

Puzzles ●Some Exercises to walk through o How would you implement the scene? o What types of objects would you construct?  What does the hierarchy look like?

Puzzle #1 - Destructible Wall

Puzzle #2 - Wrecking Ball

Puzzle #3 - Trampoline bouncy-spring-please-help.53181/

Puzzle #4 - Pool of Water

Puzzle #5 - Ragdoll

Puzzle #6 - Destructible Objects

Puzzle #7 - Improve Performance of Complicated Geometry mediate/physics/physics-best-practices

Answer - Physics Manager

Best Practices ●Remember that 2D is different than 3D in Unity o All of those puzzles, the same features apply, but use the 2D components! ● working-with-unity-best-practices/ working-with-unity-best-practices/ o 9. Put your world floor at y = 0. This makes it easier to put objects on the floor, and treat the world as a 2D space (when appropriate) for game logic, AI, and physics.

Physics in Regards to Lighting

Physics in Regards to Animation ●Integrate Maya into the pipeline ●‘Apply Root Motion’ powers animated objects based on animation o No need to move Transform or add Force

A nimation as an Agent-Based System ●Flocking Behavior o Physics - Attract and Repel Objects o ● Crowd Simulation ●Particle System

Appreciating the built-in Physics Three Books to build your own physics engine