Can you help me make an algorithm out of these parameters?
I'm trying to have an object be a specific size when at point A but another specific size at point B and linearly interpolate between those sizes when moved. I'm thinking about having the algorithm's...
View ArticleCharacter on moving platform with Interpolation
I am making my first game in Unity and I really enjoy it, but I have run into a very annoying problem. My game is a platform game where the character is always running right. My character has a...
View ArticlePhysics2D.Linecast unreliable with Rigidbody2D interpolation? What to do
Hello I am creating a platform game and I am using Physics2D.Linecast to detect whether my character is on the ground and thereby able to jump. I am currently trying to implement platforms that fall...
View ArticleRigidbody2D with interpolation lags while moving by velocity, how to solve...
I have created a new 2D project and I have a single sprite in the scene with a BoxCollider2D and a Rigidbody2D.with gravity scale set to 0. and the Rigidbody2D's interpolate is set to "interpolate". I...
View ArticleHow to lerp with a changing "from" value?
It's possible I'm not even using this right but basically I'm making a hunger system and I'm calling this in fixed update: public void Starve() { if(CurrentHunger > 0) { CurrentHunger =...
View ArticleGet a value that interpolates between two floats based on where character is...
I'm making a controller script for a paper airplane and I'm currently stuck on trying to make the plane gain speed when facing down but lose speed when facing up. The ideal way would be having a...
View ArticleHow to fix stuttering of balls falling under gravity force.
I used Rigidbody2D, with gravity scale equal to 0.1, and Interpolate is set as `Interpolate`. The rest of setting you can see on the right-hand side one the video posted below:...
View ArticleRigidbody2D interpolation doesn't work properly
Hi, I'm using Unity 2017.1.0f3. I have a simple object with Rigidbody2D on it, the rigidbody has settings like on the picture below ![rigidobody2D][1] When I move the object by changing rigidbody's...
View ArticleAnimate-kinematic-interpolate not working together
Imagine creating a conveyer-belt, a baseball bat, or a catapult. You want to play an animation that can push around rigid bodies. This is easily accomplished by setting "Animate Physics" on the...
View ArticleSmoothing Mesh
Hello, I just want to know, is there any way, to smooth a script generated mesh
View ArticleGet positions at equal intervals between two Vector3
Hi! I want to divide lineRenderer to some n parts and get vector3 positions between start position and and position. Right now I'm trying to use Vector3.Lerp for it in a for loop, but cant get the last...
View ArticleSmooth transition for GetAxis, when pressing opposite direction
I am currently working on a space game (sideways look, scrolling top down). I am using Input.GetAxis("Horizontal"), for input to controlling multiple behaviors for a space rocket. GetAxis seems smooths...
View ArticleWhat is the difference between SmoothDamp and SmoothStep
The title sort of says it all. What is the difference between Mathf.SmoothDamp and Mathf.SmoothStep??? The script reference seems to indicate they do the exact same thing! Interpolate a value from...
View ArticleSomething like Color.MoveTowards ?
I'm trying to make a material color glow bright to red, then fade back to blue depending on whether the 'glowTime' value is between 0 or 1. How can I do this? var moonGlow : Renderer; private var...
View ArticleNot interpolate quaternion on shortest path?
Hi, I have been searching a long time but I did not find something that hints at a solution. Basically I want to smoothly interpolate between two Rotations. However I do not want to interpolate along...
View ArticleInterpolate tangent/binormal
Is there any way to interpolate the tangent variable of a mesh? I am cutting vertices and I would like to recalculate as little as possble. Positions and UV mappings are done by Lerp, but what to do...
View ArticleHow to change a value over specified time?
So I have recently been wondering about how I could change a value (basically Lerp it) over a specific, predictable, amount of time... The only way I have been able to successfully do this currently is...
View ArticleTilt aircraft based on accelerometer
is hard to explain, so i put some images to visualize. i have the aircraft that not move on world space... i put a "LookAt" to move camera around. So when i go to the right (X=+1) i like to tilt the...
View ArticleSplatmapping / blending between two textures in an atlas?
I have not properly experimented with this yet however I want to produce a simple blend between a grid of squares in the same mesh, procedurally generated. I have been looking into splat maps but I...
View ArticleAnimating Characters - Blender to Unity
To begin with I am fairly new to Unity. I am working on animations in Blender using Inverse Kinematics, as that is much, much easier. Now, my understanding of Unity is that it is largely based on...
View Article