CapsuleShape(Vector2, Vector2, float) Constructor
Definition
Namespace: Brine2D.Physics
C#
public CapsuleShape(System.Numerics.Vector2 Center1, System.Numerics.Vector2 Center2, float Radius);
Parameters
Center1 System.Numerics.Vector2
First center point in local body space \(pixels\).
Center2 System.Numerics.Vector2
Second center point in local body space \(pixels\).
Radius System.Single
Capsule radius in pixels. Must be greater than zero.