Tagged Questions
0
votes
1answer
72 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 ...
-1
votes
1answer
230 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
215 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 ...
5
votes
1answer
498 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
629 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
3k 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
519 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
368 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
2answers
1k 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
958 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
452 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
507 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
610 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
3k 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
623 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 ...
3
votes
1answer
1k 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 ...
0
votes
0answers
580 views
In Unity, how do I implement a shmup boss with invincible zone and target zone? [closed]
I have a 2d game with a boss represented as a plane with a texture. Around the plane there is a collision box. There is another empty gameobject with a collision box as a child of my boss.
The 2nd ...
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
926 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 ...
