densylkin / rtscamera Goto Github PK
View Code? Open in Web Editor NEWRTS style camera controller for Unity game engine
RTS style camera controller for Unity game engine
Hi, awesome plugin, but was wondering if you are currently accepting PRs and re-submitting updated versions to the store.
If not, I'll go ahead and fork this.
Recommended fix:
private float DistanceToGround()
{
if(autoHeight)
{
Ray ray = new Ray(m_Transform.position, Vector3.down);
RaycastHit hit;
if (Physics.Raycast(ray, out hit, groundMask.value))
return (hit.point - m_Transform.position).magnitude;
}
return 0f;
}
In Unity 2021.2.7f1 I get this error. Please consider updating this package for the latest version of Unity.
Assets/RTS_Camera/Scripts/Editor/RTS_CameraEditor.cs(84,35): warning CS0618: 'EditorGUILayout.ObjectField(string, Object, Type, params GUILayoutOption[])' is obsolete: 'Check the docs for the usage of the new parameter 'allowSceneObjects'.'
The parameters put into the raycast method are wrong. Should be changed to:
if (Physics.Raycast(ray, out hit, Mathf.Infinity, groundMask.value))
Hi there ,
before i use it , i have a question ...
Does it works on android ????
i haven't tested it yet but if not can any body create the android version of that ????
It seems to set itself to 25f, even if I edit the script and change the value. Very strange.
Denis, I've really enjoyed using RTS_Camera. I appreciate all of the work you've put into it. I'm using it in an educational setting and I was wondering what open source license you are distributing the code under, since I couldn't find that in the repo.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.