Quantcast
Channel: Latest Questions by multinfs
Browsing latest articles
Browse All 52 View Live

OnTriggerStay/Enter/Exit

I got a problem with the OnTriggerStay function, I have tried using OnTriggerEnter/Exit but problems there too. What I'm trying to do is I have a ammobox on the floor and I hold a gun that should pick...

View Article



A Bullet's rigidbody, hit.normal

Q1.I have a problem with using a GameObject as a bullet instead of a Ray. I'd use Rays if it werent for it to be invisible and no flying bullets that are present. The problem now with a rigidbody is...

View Article

Bullet case lagg & collision problem

I have a gun that shoots bullets and ejects shells from a empty gameObject's position next to the gun. Now, the problem is that I want the shells to like bounce a little and maby roll over if another...

View Article

car movement basics

[Solved]1. I got a car that I've made and a script I found that I've tweaked a little, but the problem is that the car isnt doing what I want it to. It is fairly easy to handle at low speeds but if it...

View Article

how to make dust after explosion on objects

Q1.How do you make a explosion on impact and maby have somekind of force to make items "blow away"? Q2. Is there a way to make black dust/smoke after a blast on the surrounding objects depending on...

View Article


make turret point where mouse points

I need help with making a script that rotates a turret to where the mouse points,I have made some kind of script but its just messy when turning. I made it so there is a ray going from the camera to...

View Article

Rotating object towards mouse point

Same question as [here][1] but had to make new post because I couldnt comment/edit my post... So, I need a turret to point to where my mouse points on the screen. var gm : GameObject; function Update...

View Article

ParticleSystem, Maintaining Particle position when emitter moves.

What I'm trying to achieve here is that I got 2 ParticleSystems on a moving vehicle, And when they emit smoke the particles follow the emitter as it moves. I'd like them to stay in same position with...

View Article


Make car game to multiplayer

[This][1] is the game in web browser. Now it's 2 cars as I want but the camera is mixed, player 1 has player2's car but controls player1'2 car and vice versa. Now even with mixed cars x.x. You'll see...

View Article


Network Camera, Player

How can I have a main scene spawn a car on another game scene with each player having own cars that can shoot. I got it so far that I can drive and shoot and a Main menu. Its just the spawning that is...

View Article

Placing a cube at the point you look at, without overlapping.

I want to place a cube a certain distance form the player and at a point defined by a raycast going from the camera. I do a raycast that is rotated so it is following the camera's rotation and I create...

View Article

One texture loaded, used in multiple terrains, Possible?

A shortie: Is it possible to only load one texture and apply it to multiple terrains, as in not taking up unnecessary memory?

View Article

Terrain addTreeInstance crash

I seem to have a problem with creating trees on a terrain object using terrain.AddTreeInstance(instance); function because it crashes unity on play. I got multiple terrain objects generating at runtime...

View Article


How do I blend multiple textures on a mesh?

I have made a custom terrain that simply creates a plane mesh with it's vertices set according to a heightmap(not in shader!). The reason I do not use the built in Terrain objects is that this approach...

View Article

How to set mesh normals per face?

Is there any way of setting the normals for a mesh to be per face? I am using only cubes which need only one normal per face and since I'm having issues with the 65k mesh vertex limit I want to have as...

View Article


Procedural chunk based world performance troubles

Ok so I've worked with multiple infinite procedural worlds and tried to work out how the generation works and trying to optimize my code to get the most out of my world as possible. Almost every time...

View Article

[Solved] GI like lighting in procedural world

So I have this procedural world that is generated at runtime and I'm not pleased with how the lighting handles the resulting mesh.. [Solved] **1.** First issue is that I would like to have Global...

View Article

Browsing latest articles
Browse All 52 View Live




Latest Images