FollowMouse Class

Summary

Constantly accelerates a UnityEngine.Rigidbody towards the mouse cursor on the XZ plane.
Assembly
Weaver.dll
Namespace
Weaver.Examples
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["FollowMouse"] class Type type-node

Syntax

public sealed class FollowMouse : MonoBehaviour

Fields

Name Constant Value Summary
acceleration
The amount of acceleration force to apply every frame.
body
The UnityEngine.Rigidbody to apply the acceleration to.