Tagged Questions
2
votes
1answer
131 views
3D movement on an authoritiative server?
I'm developing an MMORPG, using Unity for the client and "standard" C# 4.0 for the authoritative server. The server should check each player's movement and ensure that it does not collide with props ...
0
votes
1answer
133 views
Detecting if “Wall” To The Left or Right Of Player Unity3D
I am working on a 3D Platformer in Unity3D and I need to prevent the player from going through walls. The movement for my player works like this:
(A bird-eye-view representation)The areas the ...
0
votes
1answer
96 views
Gravity/collision problems: models jumping
I'm pretty new to Unity3D game engine and game development, so don't judge me strictly. I import a model of the rail track, add rigid body component (with mass 1 and use gravity flag) and box collider ...
0
votes
1answer
1k views
Unity: OnCollisionEnter not called
I created a sphere object, added a rigidbody component (no kinematics) and attached a script to it like this:
function Update () {
}
function OnCollisionEnter(collision : Collision) {
...
0
votes
0answers
330 views
Unity3D: collider performances on mobile iOS devices
I'm experimenting with Unity3D and colliders. Unfortunately I still don't have Unity Pro version and I can't use the profiler.
Consider the following situation:
mobile devices (ios, iphone 3GS).
an ...
6
votes
1answer
838 views
Why doesn't Unity's OnCollisionEnter give me surface normals, and what's the most reliable way to get them?
Unity's on collision event gives you a Collision object that gives you some information about the collision that happened (including a list of ContactPoints with hit normals).
But what you don't get ...
1
vote
1answer
887 views
Unity Particle System collision detection problem
I'm using Unity 3.5.5f3 wich has the Shuriken particle system.
I've made a blood particle system based on Unity's demos. (Exploding paint [Blood])
The blood is flowing and when it collides with a ...
4
votes
1answer
4k views
How to detect collision in Unity3D without rigid bodies?
The target platform of my game is mobile devices therefore I try to develop it performance oriented. It will be a strategy game so I don't really need physics in it, consequently I did not add ...
6
votes
1answer
565 views
Creating custom collision map for 2D
I have a 2D level that I have built in my map editor, and I was wondering the best way to create a collision map for it.
I have a collision map layer in my map editor, which saves each node (for ...
2
votes
2answers
468 views
Do I have too many colliders on my screen?
I'm running into a situation where my frame rate drops from 70 FPS (on my desktop computer) down to 5 FPS (on my iphone) and I'm trying to understand why. At the moment, I'm only drawing simple ...
2
votes
3answers
2k views
How do I tell if an object is currently colliding with another object?
I know this sounds simple, but I can't figure out how to tell if a GameObject is currently colliding with another object in Unity. I've looked online, but can't find any tutorials or answers that ...
6
votes
5answers
2k views
Ignore collisions with some objects in certain contexts
I'm making a racing game with cars in Unity. The car has a boost/nitro powerup. While boosting, I wouldn't want to be deviated when colliding with zombies, but I do want to be deviated when colliding ...
4
votes
1answer
685 views
Finding if a point is inside of a mesh (Point-in-polyhedron)
How can I find if a point (Vector3) is inside of a mesh? Would this work for both concave and convex objects? I read somewhere that if you raycast in both directions of every axis (X, -X, Y, -Y, Z, ...
1
vote
1answer
2k views
Collision intepenetration and objects getting stuck (Unity)
I am having what is probably a newbie problem with Unity, but for the life of me, I can't find a decent solution to it. In short: my rigid bodies collide, but sometimes, they interpenetrate and stay ...
2
votes
1answer
656 views
Effects of collisons: broken glass, damaged cars, how are they created?
My question is related in particular to achieving the effects of collision in game engine, how is this done?
I have searched a bit, read from the internet and went through a few tutorials, and saw ...
2
votes
1answer
761 views
Unity3D animation and world collisions?
I'm using death animation for my enemies but the problem is that when enemy dies he crosses the walls/world. I want enemy/animation to be pushed back into world when he dies (animation is playing). ...
0
votes
3answers
4k views
2D games on Unity and collision detection performance
I'm developing a 2D game for the iOS platform. I have seen a lot of packages on asset store that makes 2D asset creation for unity easier.
I have narrowed my selection to just 2, 2d toolkit and ex2d. ...
0
votes
1answer
701 views
How to find which side of a collider has been hit from hit.normal?
In Unity3d, i can get the normal of the surface with which the collider collides using hit.normal, but is there a way to find which side has been hit what is provided bu Unity3d?
One solution is to ...
4
votes
1answer
2k views
How can I set up a Pong-style game using the physics system in Unity?
I've just been using Unity and chose to learn it by making a Pong game which sounded simple enough as a "hello world" type of game. My goal was to try and encompass enough of the built in engine ...
2
votes
3answers
2k views
Unity, changing gravity game & stopping character when he hit a wall
i am currently working on a 2d puzzle game in the unity engine. One of the aspect of this game is the possibility to rotate the level of 90°. It also rotate the gravity.
The main character is not ...
5
votes
3answers
1k views
Make my NPC “see” gameobjects around him in Unity
I have a walking NPC that will "see" the wall in front or behind him (2d gameplay) and that will react accordingly.
I was thinking to attach him to an invisible collider that would react to objects ...
1
vote
4answers
1k views
Have a simple enemy detecting he touch a wall to make him stop/turn around
I am doing a very simple scene with a cube sliding on the "ground". Once the cube reach a wall, he is blocked.
I want to detect the wall to make the cube go in the other direction. I used ...