Quantcast
Channel: Questions in topic: "interpolate"
Browsing latest articles
Browse All 93 View Live

Interpolate 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 Article



How 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 Article

Tilt 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 Article

Splatmapping / 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 Article

Animating 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


Dynamically create interpolated hollows and bumps in terrain

Hi, I want to create a static soccer game like this [table soccer][1] ![table soccer][2] Since I want to be able to have different board setups, and perhaps even allow players to create custom setups,...

View Article

Rigidbody 2D with interpolate = cant rotate object

I heave problem with rotation object on Y axis. I heave Rigidbody 2D attached with interpolation set to interpolate ... from that moment i cant rotate via Y (when is interpolation off everythinks works...

View Article

Physics. What is interpolate, extrapolate, discrete, continuous?

I've been playing around with physics over the past few days, 2D physics. I understand mostly everything but when it comes to the interpolation and collision modes, I'm confused a bit. Ill start with...

View Article


Smooth camera size interpolation

I am trying to interpolate the camera size with this code: // t counts between 0 and 1 cam.orthographicSize = Mathf.SmoothStep(cam.orthogaphicSize, CAMERA_DEFAULT_ZOOM * ZoomFactor, t); The issue is...

View Article


Rigidbody2D interpolate not working on iOS (Unity 5)

I use a 2D rigidbody to move a character. Due to fixed time position update the movement stutters. To compensate I use this option:...

View Article

Interpolation 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

Unity 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 Article

Mesh 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 Article


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 Article

Character 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 Article


Physics2D.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 Article

Rigidbody2D 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 Article


How 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 Article

Get 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 Article

How 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 Article

Rigidbody2D 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 Article


How 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 Article


Player 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 Article

Mathf.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 Article

Linear 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 Article


Child 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 Article

How 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 Article

Stuck with weapon recoil

I just can't figure out how to make a recoil script that doesnt get back to old rotation.

View Article

How 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 Article



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 Article
Browsing latest articles
Browse All 93 View Live




Latest Images