Shape of PhysicsBody
ID from GameObject ID
X position
Y position
Width
Height
Radius
Game instance
Scene instance
What the GameObject collides with
X position
Y position
Width of the bounds
Height of the bounds
The target velocity
The value to increase the velocity by
The value to decrease the velocity by
The Vector2 to add to the velocity by
PhysicsBody to detach
PhysicsBody to detach from
PhysicsBody to check their hitbox with
Scale Vector2, x is width, y is height
The type of the PhysicsBody, 'KinematicBody' | 'RigidBody' | 'StaticBody'
The axis to set the velocity of
The value to set the velocity axis as, in pixels per second
The value to set the velocity axis as, in pixels per second
The value to set the velocity.y as, in pixels per second
Generated using TypeDoc
Creates a DuckEngine PhysicsBody
The PhysicsBody Class. The GameObject class extends this class
2.0.0