Browse Source

Added missing allowFastRotation field to box2d.BodyDef.

Barinzaya 4 months ago
parent
commit
744587e082
1 changed files with 4 additions and 0 deletions
  1. 4 0
      vendor/box2d/types.odin

+ 4 - 0
vendor/box2d/types.odin

@@ -188,6 +188,10 @@ BodyDef :: struct {
 	// Triggers whenever a shape is add/removed/changed. Default is true.
 	automaticMass: bool,
 
+	// This allows this body to bypass rotational speed limits. Should only be used
+	// for circular objects, like wheels.
+	allowFastRotation: bool,
+
 	// Used internally to detect a valid definition. DO NOT SET.
 	internalValue: i32,
 }