bas-boop / Feature-vault

This a Unity package with features, extenstions and tools. Ideal for integration into any Unity project.
MIT License
2 stars 0 forks source link

Transform and Rigidbody(2D) vector extensions #12

Open bas-boop opened 9 months ago

bas-boop commented 9 months ago

Is your feature request related to a problem? The vector extensions do not work on something like transform.position or rigidbody.velocity. Because they are a temporary value.

Describe the solution you'd like New functions that can be called from the transform rigidbody(2D) that do all the stuff you want with the vector extensions.

Additional context Something like this rigidbody.ChangeVelocityX(speed);, source: https://github.com/bas-boop/Smoll_Knight_plus_Horse/blob/Develop/Assets/Scripts/Framework/Extentions/Rigidbody2DExtensions.cs