Skip to content

Commit

Permalink
Allow bodies to be safely added or removed from an frWorld
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeokkim committed May 11, 2024
1 parent ded96b8 commit f9042bf
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 489 deletions.
1 change: 0 additions & 1 deletion examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ SOURCE_PATH = src
TARGETS ?= \
${SOURCE_PATH}/basic.out \
${SOURCE_PATH}/cows.out \
${SOURCE_PATH}/melon.out \
${SOURCE_PATH}/query.out \
${SOURCE_PATH}/raycast.out \
${SOURCE_PATH}/raylib.out
Expand Down
1 change: 0 additions & 1 deletion examples/Makefile.emcc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ SOURCE_PATH = src
TARGETS = \
${SOURCE_PATH}/basic.html \
${SOURCE_PATH}/cows.html \
${SOURCE_PATH}/melon.html \
${SOURCE_PATH}/query.html \
${SOURCE_PATH}/raycast.html \
${SOURCE_PATH}/raylib.html
Expand Down
1 change: 0 additions & 1 deletion examples/Makefile.mingw
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ SOURCE_PATH = src
TARGETS = \
${SOURCE_PATH}/basic.exe \
${SOURCE_PATH}/cows.exe \
${SOURCE_PATH}/melon.exe \
${SOURCE_PATH}/query.exe \
${SOURCE_PATH}/raycast.exe \
${SOURCE_PATH}/raylib.exe
Expand Down
321 changes: 0 additions & 321 deletions examples/src/melon.c

This file was deleted.

2 changes: 1 addition & 1 deletion include/ferox.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ typedef enum _frBodyType {
} frBodyType;

/* An enumeration that represents a property flag of a rigid body. */
typedef enum frBodyFlag {
typedef enum _frBodyFlag {
FR_FLAG_NONE,
FR_FLAG_INFINITE_MASS,
FR_FLAG_INFINITE_INERTIA
Expand Down
2 changes: 1 addition & 1 deletion src/rigid-body.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ void frApplyAccumulatedImpulses(frBody *b1, frBody *b2, frCollision *ctx) {

ctx->contacts[i].cache.tangentMass = 1.0f / tangentMass;

// TODO: ...
/* TODO: ... */
}
}

Expand Down
Loading

0 comments on commit f9042bf

Please sign in to comment.