Skip to content

Instantly share code, notes, and snippets.

Avatar

Aaron Heuckroth Nesciosquid

View GitHub Profile
View ComputeSwingForce.cs
/// <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 Feb 5, 2016
3D-Printable Light Sensors
View fiberConnector_single.stl
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.