dbrizov / naughtycharacter Goto Github PK
View Code? Open in Web Editor NEWThird Person Controller for Unity
License: MIT License
Third Person Controller for Unity
License: MIT License
I would like to know where the collisions are programmed since I have added an animation of crouching to the character and they work badly for me.
Could you add support for sliding / moving down slopes?
Is it possible to use the 3rd person controller and animations in a commercial project?
When in slow-motion sometimes the character's horizontal velocity goes to 0.0 for a single frame and a transition to Idle state starts. This creates an effect as if the character is faltering for a sec. When I plug in a controller before I start Unity the bug fixes. Then when I unplug the controller while the Unity Editor is running, the bug is still fixed.
Edit: I found out what the problem is. The CharacterController component internally stores the last two positions of the character and the time that was needed for the character to move from the first position to the second position. This information is enough so that the velocity of the character can be calculated. In slow motion however, these two positions sometimes are equal, because the character is moving really slowly. This way the calculated velocity results in 0.0, and the Idle animation of the character start to play for a single frame. However I don't know why this bug is present only when no joystick controller is plugged in.
I want to say thanks for DrawGizmoSphere
function in SpringArm.cs
. I am using it in external resources for drawing wire sphere, since there is no quaternions there, I just swapped y
and z
coords inside GetSphericalPoint
function and it works great.
I want to draw a circle shape around given normal, by default my points are in XZ plane and I want to achive flexible way to position it (same as https://docs.unity3d.com/ScriptReference/Handles.DrawWireDisc.html)
// here is my unity code but same calculations applied in javascript
Vector3[] positions = new Vector3[Count];
float stepSize = 360f / Count;
for (int i = 0; i < positions.Length; i++)
{
float angle = i * stepSize * Mathf.Deg2Rad;
positions[i].x = Mathf.Sin(angle) * Radius;
positions[i].z = Mathf.Cos(angle) * Radius;
}
It would be great if you can help me ๐
Here is some screenshots (manually changed coords)
How would you enable the weapons for use?
You are my hero, tks for the open source work. I will try to include your code into my project
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.