Quantcast
Channel: Latest Questions by guto-thomas
Browsing all 84 articles
Browse latest View live
↧

Best approach to create a one-wheeled vehicle physics

Hello everyone, I'm currently trying to create a one-wheeled vehicle in Unity. My first approach was using Rigidbody and a SphereCollider that contains the whole model. The transmission system is all...

View Article


Best way to ground something when hitting the ground with physics

Hello everyone, I'm creating a physics system for a monowheeled vehicle and I'm trying to figure out what's the best way to keep something grounded when touching the ground. My vehicle keeps bouncing a...

View Article


Vehicle using a wheel collider wont point in the direction of movement

Hi guys, I'm designing a vehicle that only has one wheel. It works great, except for steerAngle. When I set the steerAngle, the vehicle starts moving on a different direction, but its body won't point...

View Article

Why does a Texture2D is being initialized with all colors set to (1, 1, 1,...

Hello everyone, I'm initializing a Texture2D of 512x512 a few times per frame. I noticed some areas were getting transparent and I assumed the texture was 100% opaque white. Then I tried to print the...

View Article

Mecanim won't play any animations

Hey everyone, I have Mecanim setup with just one BlendTree with a 2D blending that controls the steering/acceleration of a vehicle I have. My animations are all imported and I can preview them in the...

View Article


Touch phase changes to Ended before I take my finger off the screen (Cardboard)

Hey everyone, I'm trying to create a system to fire an event when you hold your finger on the screen for more than 1 second. Should be pretty simple except the phase of the current touch is not...

View Article

[Cardboard] Camera rotates even if device stands still

Hi everyone, I've been facing a weird issue with a cardboard game I'm coding. The problem is that after some time it looks like the gyroscope looses calibration and the camera rotates on the Y axis...

View Article

How to invert normals of a geometry generated inside Unity?

Hey guys, I generated a geometry in Unity and it acts as a wall, but for one of the sides to work correctly, I need to invert the normals. Somewhere around the internet I was advised to get the normals...

View Article


Substance Designer material's metallic and roughness not working on Android...

Hey everyone, I have a scene with a game object using a procedural material from Substance. At first, I got a grey screen after the Unity logo and then I realized I had to change the load behaviour to...

View Article


SCORM access from Mobile

Hi everyone, I've been wanting to integrate SCORM with Gear VR. The problem is that, apparently it only works on WebPlayer so this is an issue. My question is if it's possible to use WWW and WWWForm to...

View Article

Shader: How to get a greyscale screen texture with the pixels as emissive areas

Hey everyone, I'm trying to work my way into shaders these days and I've been thinking about a bloom shader as an Image Effect. I thought: well, I can grab the current frame and a 'mask' with all the...

View Article

[Solved] Problem getting custom blur image effect to work

Hey everyone, I've been coding a very simple blur image effect to serve as a liquid renderer. Basically, a blur the image containing the liquid primitives and get all the pixels within a certain...

View Article

Problems with custom image effects in VR

Hey everyone, I'm currently trying to create a simple image effect in Unity. It works great in the game view, but wearing a Vive, the effect is all messed up. Basically, I have the main camera...

View Article


[VR] Does rendering to a texture support 'single pass rendering'?

Hello, I'm trying to create an image effect that is a mixture of the output of 2 cameras. One renders a specific layer, processes it, and then another pass is responsible for combining the two...

View Article

Adding script in runtime makes pre-set fields null

Hello all, I have a script in the Assets folder with all the fields pre-set (those who show up above the script's text in the Inspector). When I add this script as a component to a GameObject manually...

View Article


UI rebuilding every frame after Unity 2017 upgrade

Since I updated my project from Unity 5.6 to 2017.2.0b11, my User Interface has turned into a huge bottleneck. My canvas is basically composed of 2D elements that target some 3D object, making the 2D...

View Article

ScreenToWorldPoint giving strange results

Hey everyone! I'm working on an element allignment system for my own GUISystem. Something simple, but good for now. Everything works fine except for the ScreenToWorldPoint function, which don't give...

View Article


ScreenToWorldPoint not working propertly in the editor?

*This question is a continuation of [this one][1]. Hey everyone! My problem is the following: When I want to place an object at the borders of the camera in the editor, this gives me strange results,...

View Article

Reseting armature's rotation in Unity

When I import a model with armature animations from Blender to Unity, why I can 't reset the armature's rotation? When I press play button the armature always get back to the same rotation that it was...

View Article

What we can achieve by putting MonoBehaviour inside namespaces?

Hey guys! As everyone, I'm really excited about Unity 4 coming out in some weeks(or days, maybe..?!). I took a look in the release notes and I found out an interesting update(well, I think it is...):...

View Article
Browsing all 84 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>