Skip to content

Instantly share code, notes, and snippets.

@wh00ops
wh00ops / ForceProcessor.cs
Last active February 16, 2022 18:02
[Unity] An example of the code of how to calculate the force of a RigidBody in order to achieve the specified speed characteristics
using UnityEngine;
/// <summary>
/// An example of the code of how to calculate the force of a Rigidbody in order to achieve the specified speed characteristics.
/// </summary>
public class ForceProcessor : MonoBehaviour
{
/// <summary>
/// Target speed;
/// </summary>