45 Commits

Author SHA1 Message Date
Rohan Santhosh Kumar
134d842c4b
docs: fix typo in spring comment (#23) 2026-05-28 16:35:53 -04:00
Andrey Nering
363be2a5fd chore: remove CODEOWNERS 2026-04-22 11:14:52 -03:00
Christian Rocha
6f6967c91a
chore: update CODEOWNERS 2024-08-06 10:30:26 -04:00
Maas Lalani
48f1f1ff32
Create CODEOWNERS 2024-02-28 21:20:23 -05:00
Carlos Alexandro Becker
f1aaeb7e04
docs: update license
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-05-11 12:39:20 +00:00
Christian Muehlhaeuser
3aa7f08f57 docs: new readme footer 2022-10-24 10:17:54 +02:00
Stefan VanBuren
a53938cdc6 Fix typos 2022-09-23 03:28:56 +02:00
Christian Rocha
5ae57d3f7a chore: organize examples per the spring/particle dichotomy v0.2.0 2022-04-14 21:30:28 -04:00
Kurt McKee
160530cce7 Fix a minor typo
Noticed while browsing Charm repos. Neat stuff!
2022-01-25 21:15:15 +01:00
Ayman Bagabas
f06c4abdf3
feat: sync harmonica with git.charm.sh 2022-01-25 14:37:58 -05:00
Maas Lalani
9db67628b1 Expose Velocity and Acceleration on Projectiles 2021-11-02 17:58:34 -04:00
Christian Rocha
ff7be1c0cd
Update package description to include projectiles + doc comment edits 2021-10-27 12:56:53 -04:00
Maas Lalani
33fdf985b9
Return pointer to projectile from NewProjectile 2021-10-27 12:56:53 -04:00
Maas Lalani
ea1f87748a
Physics example to demonstrate how to use the projectile functionality 2021-10-27 12:56:26 -04:00
Maas Lalani
75a028d558 Introduce projectile.Position() utility 2021-10-07 11:54:51 -04:00
Maas Lalani
862fb70b7b Introduce TerminalGravity and change behavious of Gravity 2021-10-07 11:54:51 -04:00
Maas Lalani
c13404a663 Introduce 2D + 3D projectile motion
Example Usage:

```
projectile := NewProjectile(FPS(60), Point{6.0, 100.0, 0.0}, Vector{2.0, 0.0, 0.0}, Vector{2.0, -9.81, 0.0})

someUpdateLoop(func() {
  pos := projectile.Update()
})
```

NOTE, this is still missing:
1. Projectile mass
2. Forces (projectile.AddForce(Force{...})...)
3. Collisions (maybe?)
2021-10-07 11:54:51 -04:00
Maas Lalani
987abb3735 Change waitASec to wait
waitASec sometimes sleeps for 500ms and 750ms, so sleep for a duration rather than an int
2021-08-06 19:28:29 -07:00
Christian Rocha
5a37ebca21 Correct usage in README example 2021-07-28 17:30:54 -04:00
Christian Rocha
42ecdb810f Link README image to high-res art 2021-07-26 13:02:13 -04:00
Christian Rocha
d45b96278a
Copy values in Update method to avoid data races v0.1.0 2021-07-23 14:56:54 -04:00
Christian Rocha
37ee95df51
Also build examples in build workflow 2021-07-23 10:38:29 -04:00
Christian Rocha
d651067009
Add art to README 2021-07-23 09:45:34 -04:00
Christian Rocha
3c94e02dc9
Fix typos in the README and in comments 2021-07-19 20:28:12 -04:00
Christian Rocha
1de2016a3a
Link NewSpring in README to docs 2021-07-19 17:10:06 -04:00
Christian Rocha
3d372ec8a8
Add example GIFs to README 2021-07-19 17:03:12 -04:00
Christian Rocha
4e27515ee9
Rename example directories to use more general terms 2021-07-19 16:17:26 -04:00
Christian Rocha
1d5f0f8e4c
Small timing adjustments to Bubble Tea example 2021-07-19 12:46:50 -04:00
Christian Rocha
87e1a9dba6
Update README and example code 2021-07-15 10:27:11 -04:00
Christian Rocha
3250234a99
Update examples per the corrected algorithm 2021-07-15 10:26:42 -04:00
Christian Rocha
62c83bf96a
More readable variable names 2021-07-13 21:36:02 -04:00
Christian Rocha
0b6d573edd
Fix huge typo that was throwing off calculations 2021-07-13 21:31:08 -04:00
Christian Rocha
3bece8a812
Tidy up visual example 2021-07-13 20:51:16 -04:00
Christian Rocha
f621791e1c
Add (empty) go.sum 2021-07-13 20:40:54 -04:00
Christian Rocha
d7531b76d7
Just use pixel/pixelgl directly for the visual example 2021-07-13 20:40:23 -04:00
Christian Rocha
c6198b0130
Simplify time delta helper 2021-07-13 20:39:37 -04:00
Christian Rocha
d56f9e806c
Rework TimeDelta func into a simpler FPS func and remove FPS consts 2021-07-09 18:24:41 -04:00
Christian Rocha
17bfa34c33
Hide blob in 2D example if user hasn't clicked in awhile 2021-07-09 18:03:32 -04:00
Christian Rocha
25d8790040
Add GitHub workflows 2021-07-09 15:55:54 -04:00
Christian Rocha
3512b536b2
Add README 2021-07-09 15:00:26 -04:00
Christian Rocha
3332976a4c
Add Bubble Tea demo 2021-07-09 14:25:36 -04:00
Christian Rocha
4db1ed716b
Add 2D pixel-based demo 2021-07-09 13:19:05 -04:00
Christian Rocha
4034cbe42c
Add LICENSE 2021-07-09 13:12:59 -04:00
Christian Rocha
f24c409e88
Add go.mod/go.sum 2021-07-09 13:12:47 -04:00
Christian Rocha
8c9b7071ac
Initial commit 2021-07-09 13:12:33 -04:00