18 lines
581 B
Plaintext
18 lines
581 B
Plaintext
URL: https://wiki.studiominus.nl/internalReference/VibrationBehaviour.html
|
|
Title: People Playground Modding - VibrationBehaviour
|
|
==================================================
|
|
|
|
public class VibrationBehaviour
|
|
Inherits MonoBehaviour
|
|
[RequireComponent(typeof(Rigidbody2D))]
|
|
Will vibrate the attached rigidbody 2D
|
|
Fields
|
|
public float VibrateForce
|
|
This object vibrates when activated and this controls the vibration force intensity
|
|
|
|
public float VibrateRotationSpeed
|
|
Vibration frequency
|
|
|
|
Properties
|
|
public Vector2 ForceVector { get; }
|
|
Get current force vector that is being applied |