This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:guides:beginners:physics [2018/06/28 03:48 (7 years ago)] – In line with init projects sausage | en:guides:beginners:physics [2025/09/30 17:26 (5 weeks ago)] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 15: | Line 15: | ||
| In order for physics to act on an object, the object needs to have a body. Let's add one to our hero: | In order for physics to act on an object, the object needs to have a body. Let's add one to our hero: | ||
| - | < | + | < |
| [HeroObject] | [HeroObject] | ||
| Graphic | Graphic | ||
| Line 44: | Line 44: | ||
| Run that and you'll see our hero fall right through the floor. So that's good. The physics body is working. But we need to get the platforms solid too. | Run that and you'll see our hero fall right through the floor. So that's good. The physics body is working. But we need to get the platforms solid too. | ||
| - | < | + | < |
| [PlatformObject] | [PlatformObject] | ||
| Graphic | Graphic | ||
| Line 71: | Line 71: | ||
| First, set the flags on the HeroBodyPart: | First, set the flags on the HeroBodyPart: | ||
| - | < | + | < |
| [HeroBodyPart] | [HeroBodyPart] | ||
| Type = box | Type = box | ||
| Line 83: | Line 83: | ||
| Now set the '' | Now set the '' | ||
| - | < | + | < |
| [PlatformBodyPart] | [PlatformBodyPart] | ||
| Type = box | Type = box | ||
| Line 99: | Line 99: | ||
| You can turn on physics debug mode if you want to see the bounding boxes around the objects. Turn on the physics debug with: | You can turn on physics debug mode if you want to see the bounding boxes around the objects. Turn on the physics debug with: | ||
| - | < | + | < |
| [Physics] | [Physics] | ||
| AllowSleep | AllowSleep | ||