Skip to content

Instantly share code, notes, and snippets.

/// <summary>
/// Compute a force that will redirect a character's speed into movement along a circle.
/// </summary>
/// <param name="characterPosition">The current position of the character in world space.</param>
/// <param name="swingTarget">The position of the center of the swinging circle in world space.</param>
/// <param name="swingDistance">The intended fixed distance between the character and the hook target.</param>
/// <param name="controller">The character's controller.</param>
/// <returns>A force that, if set on the character, will move them to a new position along the swinging
/// circle relative to their current velocity.
protected static Vector2 ComputeSwingForce(Vector3 characterPosition, Vector3 swingTarget, float swingDistance, CorgiController controller)
@Nesciosquid
Nesciosquid / fiberConnector_single.stl
Last active February 5, 2016 19:49
3D-Printable Light Sensors
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.