Debian Codegraph @

examples/physics/physics_forces/README.md

raw symbols SCIP
1 # Physics Forces
2
3 Test using `TCastleRigidBody.AddForce` and friends.
4
5 A number of rigid bodies are placed in a closed box (because we will hit them with forces and we don't want to escape).
6
7 The blue arrow represents the force position, direction, strength.
8
9 - Move it by AWSD
10 - Scale by QE
11 - Rotate by ZC
12
13 Press (you can press once, or hold the key down to keep applying):
14
15 - Key 7: `TCastleRigidBody.AddForceAtPosition`
16 - Key 8: `TCastleRigidBody.AddForce`
17 - Key 9: `TCastleRigidBody.AddTorque`
18 - Key 0: `TCastleRigidBody.ApplyImpulse`
19
20 The idea is that you can play this weird game with both hands. Left hand controls the arrow (force position/direction), right hand makes given force active.
21
22 ![Screenshot](screenshot.png)
23
24 Using [Castle Game Engine](https://castle-engine.io/).
25
26 ## Building
27
28 Compile by:
29
30 - [CGE editor](https://castle-engine.io/editor). Just use menu items _"Compile"_ or _"Compile And Run"_.
31
32 - Or use [CGE command-line build tool](https://castle-engine.io/build_tool). Run `castle-engine compile` in this directory.
33
34 - Or use [Lazarus](https://www.lazarus-ide.org/). Open in Lazarus `physics_forces_standalone.lpi` file and compile / run from Lazarus. Make sure to first register [CGE Lazarus packages](https://castle-engine.io/lazarus).
35
36 - Or use [Delphi](https://www.embarcadero.com/products/Delphi). Open in Delphi `physics_forces_standalone.dproj` file and compile / run from Delphi. See [CGE and Delphi](https://castle-engine.io/delphi) documentation for details.