User Tools

Site Tools


en:tutorials:physics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:tutorials:physics [2015/12/06 20:10 (5 years ago)]
127.0.0.1 external edit
en:tutorials:physics [2018/06/21 16:48 (23 months ago)] (current)
Line 3: Line 3:
 ===== Summary ===== ===== Summary =====
  
-See previous ​[[main_previous#​Basic|basic tutorials]] for more info about basic [[object|object creation]], [[clock|clock handling]], [[frame|frames hierarchy]],​ [[anim|animations]],​ [[viewport|cameras & viewports]],​ [[sound|sounds & musics]] and [[FX|FXs]].+See previous basic tutorials for more info about basic [[object|object creation]], [[clock|clock handling]], [[frame|frames hierarchy]],​ [[anim|animations]],​ [[viewport|cameras & viewports]],​ [[sound|sounds & musics]] and [[FX|FXs]].
  
-This tutorial shows how to add physical properties to objects and handle collisions.+This tutorial shows how to add physical properties to objects. By adding a body (and body parts) you can  ​handle collisions ​between objects.
  
-As you can see, the physical properties are completely data-driven. Thus, creating an object with physical properties (ie. with a body) or without results in the exact same line of code.+As you can see, the physical properties are completely ​[[en:​orx:​config:​main|data-driven]]. Thus, creating an object with physical properties (ie. with a body) or without results in the exact same line of code, eg: 
 + 
 +<code c> 
 +orxObject_CreateFromConfig("​MyObject"​);​ 
 +</​code>​
  
 Objects can be linked to a body which can be static or dynamic.\\ Objects can be linked to a body which can be static or dynamic.\\
Line 41: Line 45:
  
 As usual, we begin by creating a viewport, getting the main clock and registering our ''​Update''​ function to it.\\ As usual, we begin by creating a viewport, getting the main clock and registering our ''​Update''​ function to it.\\
-Please refer to the [[main_previous#​Basic|previous tutorials]] for more details.+Please refer to the previous tutorials for more details.
  
 We also creates our walls. Actually we won't create them one by one, we'll group them in a ''​ChildList''​ of a parent object. We also creates our walls. Actually we won't create them one by one, we'll group them in a ''​ChildList''​ of a parent object.
en/tutorials/physics.1449432654.txt.gz · Last modified: 2017/05/30 07:50 (3 years ago) (external edit)