소스 검색

Merge pull request #5044 from Barinzaya/box2d-missing-allowfastrotation

Add missing field in box2d.BodyDef
Jeroen van Rijn 4 달 전
부모
커밋
3ba9b9b14e
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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,
 }