You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/OctopusKit/Components/Physics/PhysicsComponent.swift
+23-12Lines changed: 23 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -42,21 +42,25 @@ public final class PhysicsComponent: OctopusComponent, OctopusUpdatableComponent
42
42
}
43
43
44
44
/// The scalar to limit the velocity of the `physicsBody` to.
45
-
publicvarmaxVelocity:CGFloat?
45
+
publicvarmaximumVelocity:CGFloat?
46
+
47
+
/// The angular velocity in Newton-meters to limit the `physicsBody` to.
48
+
publicvarmaximumAngularVelocity:CGFloat?
46
49
47
50
/// Overrides this component's `physicsBody` property and creates a new rectangular `SKPhysicsBody` from the frame of the entity's `SpriteKitComponent` node.
48
51
///
49
52
/// As creating physics bodies may be a costly runtime operation, this setting defaults to `false`.
0 commit comments