-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPhysics_Tut.txt
34 lines (25 loc) · 889 Bytes
/
Physics_Tut.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Physics:
How to make it Better:
1. Limit speed.
2. Split time segments enough so that fast entities don't skip collisions.
Space-
Setup a physics space to run your physics in.
Body-
Mass, Position, Velocity, and other physical properties.
Types (Free Body + Static Body)
Free Body = Moves freely
Static Body = Doesn't move
Shape-
Determines the volume, and is lines connected to each other. So shapes are a mix of circles, rectangles, and lines.
Bounding Box-
The area that bodies should not escape from.
-------------
' o o '
-------------
Collisions / Arbiter -
A callback function to set when two things collide.
Initial Collisions, Continued Collisions, After Collision
Initial = When they first touch.
Continued = After they touch, but they are in contact still.
After = They are no longer in contact, after having being touched.
Physics Specific Order = (Body->Shape)