how to change Rigidbody "interpolate to none" through script.
Hello, I want to change Rigidbody interpolate "interpolate to none" through script when a function runs, But I don't know the syntax of it. Help
View ArticleHow to change Rigidbody interpolate through script.
I need to switch Rigidbody interpolate to none when a function runs, And I don't know the syntax of it. Help
View ArticleStuck with weapon recoil
I just can't figure out how to make a recoil script that doesnt get back to old rotation.
View ArticleHow do I make my gameobject rotate smoothly towards target?
I have a transform which is the player's head bone, and I want to rotate it towards the opponent smoothly. Right now, with the following code, the player's head rotates towards the opponent as...
View ArticleChild Object Rotation interpolation problem,
Hi everyone, I have a turret made of 2 parts: -the "Base" that can only rotate left/right; -the "Body" that can only rotate up/down and is a child object of "Base"; ----------------- Both objects have...
View ArticleLinear Interpolation of Array Values
Hey all, Im currently working on a car physics simulation and I am implementing the torque curve (in Nm)/RPM of an MX5. So I created an Array with a step for every 1000RPM so from : 0 RPM to 7000 RPM :...
View ArticleMathf.Lerp for integers
Unexpectedly for myself, I'm hung up on this issue. Suppose there is an array with a length of N elements. And we need to take an element from there, but not by index, but by value t = [0..1] *(from 0...
View ArticlePlayer starts moving in one direction nonstop after colliding with any other...
My current issue is that when my player capsule collides with any other object that has a collider it starts to move nonstop in the opposite direction of the collision. **Player Components:** ![alt...
View ArticleHow to interpolate or polyfit two data sets?
I have a speed and angle of a boat. Like "speed = (0,5,8,14)" and "angle = (0,3,5,4)" What is the angle at speed 3? In matlab this is just one command ... And ofcourse I need an fast algorithm. I found...
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 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 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 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 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 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 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 ArticleCan 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 ArticleMesh looks like overlapping.
Hello. I am developing a ski game and I have some problems. So i built a course slope in cinema4d and imported an fbx file in unity and when build some areas look as they were interpolated.(in run mode...
View ArticleUnity 5 shader error : Too many texture interpolators would be used for...
Hi, I'm trying to use good old T4M shader in Unity 5 and it seems there is an extra interpolator in action. Is there a way to still use it without setting it to shader target 4.0? Shader...
View ArticleInterpolation issue, some items not being interpolated correctly.
I have a game in which you break through obstacles and the obstacle parts separate into physics based pieces. All of the pieces are contained in the parent object, they all have rigidbody2d on them,...
View Article