• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges

Oncollision

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

srlwd answered

OnCollision called without colliding with anything

Oct 21, '20 collision·rigidbody·oncollision

1 Reply

0 Votes

avatar image

iodinex64 commented

OnCollisionEnter2D being called twice sometimes

Sep 16, '20 ontriggerenter·oncollisionenter·racing·ontriggerenter2d·oncollision

1 Reply

0 Votes

avatar image

LastFarmer answered

OnParticleCollision is broken

May 21, '20 particles·oncollision

1 Reply

0 Votes

avatar image

rhysp commented

Alternatives to OnCollision methods/messages for many physics objects?

Mar 11, '20 collision·physics·colliders·physx·oncollision

0 Replies

1 Votes

avatar image

Liloge23 asked

Particle Collision causes Explosion?,Explosion on particle contact?

Jan 15, '19 in Help Room

0 Replies

0 Votes

avatar image

hillsy7 commented

How to stop Players pushing Enemies

Nov 6, '18 rigidbody2d·2d-physics·oncollision

1 Reply

0 Votes

avatar image

eses edited

While loop causing Unity to hang up?

Aug 30, '18 in Help Room

1 Reply

0 Votes

avatar image

AdityaViaxor commented

C# I try to score a point with a collectible, but when the object is destroyed the point doesn't count

Aug 24, '18 c#·destroy object·oncollision

1 Reply

0 Votes

avatar image

RShields commented

Why are my objects floating above ground?

Aug 15, '18 models·colider·oncollisionstay·oncollision

0 Replies

1 Votes

avatar image

losingisfun edited

Color not changing on collision

Jun 22, '18 color change·oncollision

1 Reply

0 Votes

avatar image

tormentoarmagedoom answered

How to run method if any collision event anywhere occurs?

May 22, '18 in Help Room

1 Reply

0 Votes

avatar image

Shruti_g94 answered

How to make a constantly bouncing effect

Mar 31, '18 c#·cube·bounce·endless·oncollision

1 Reply

0 Votes

avatar image

david_31 asked

get angular velocity change from collision

Dec 2, '17 collision·oncollisionenter·angularvelocity·oncollision

0 Replies

0 Votes

avatar image

Darkwinger commented

Carry Object over multiple scenes - Adventure Game Closed

Nov 5, '17 unity 5·oncollision·adventure

1 Reply

0 Votes

avatar image

unity_18jschmidt commented

Destroying gameobject after animation

Oct 29, '17 animator·coroutine·bool·oncollision·breakout

1 Reply

0 Votes

avatar image

jaslan answered

ignore collision when bool false?

Oct 15, '17 bool·ignorecollision·oncollision·passthrough·ignore objects

1 Reply

0 Votes

avatar image

jabez commented

checking Bool true from another Script?

Oct 12, '17 scripting problem·getcomponent·bool·true·oncollision

2 Replies

0 Votes

avatar image

TBART82 commented

Changing a material on a particle on collision

Oct 11, '17 particles·newbie·colour·oncollision·change material

1 Reply

1 Votes

avatar image

sandeepsmartest commented

how to make camera shake when on collision with certain object Closed

Jun 13, '17 camera·shake·oncollision

0 Replies

0 Votes

avatar image

mike1233 edited

code if 2 or more enemies are killed at same time?

Feb 11, '17 in Help Room

0 Replies

0 Votes

avatar image

mike1233 commented

code so if 1 enemy isnt killed every 4 seconds player dies?

Feb 9, '17 in Help Room

1 Reply

0 Votes

avatar image

mike1233 asked

code so if 1 enemy isnt killed every 4 seconds player dies? Closed

Feb 3, '17 in Help Room

0 Replies

0 Votes

avatar image

EDevJogos edited

Need player to die when they touch the floor. Never really coded before so I have no idea how to get his effect.

Jan 18, '17 in Help Room

0 Replies

0 Votes

avatar image

webicindia commented

i can see my objects collide but OnCollisionEnter never called c#

Nov 26, '16 c#·collision·oncollision

1 Reply

0 Votes

avatar image

nqs123 published

OnCollisionEnter2D has problem..

Jul 8, '16 oncollision

0 Replies

0 Votes

avatar image

muller100 asked

Touch screen game - Character collides with players touch

Feb 29, '16 in Help Room

0 Replies

0 Votes

avatar image

MadDevil commented

Not registering OnCollisionEnter?

Feb 22, '16 in Help Room

0 Replies

0 Votes

avatar image

PMasta answered

OnCollision check without Enter

Jan 3, '16 in Help Room

2 Replies

0 Votes

avatar image

lloladin answered

Prevent objects from pushing eachother on collide

Sep 24, '15 2d·collider2d·transform.position·collision2d·oncollision

1 Reply

0 Votes

avatar image

Ulluses edited

Problems with Color.Lerp in a Coroutine

Mar 22, '15 coroutine·timer·spriterenderer·color.lerp·oncollision

3 Replies

1 Votes

  • 1
  • 2
  • ›

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Related Topics

collision c# oncollisionenter if-statements ontrigger bool spriterenderer 2d game rigidbody particles collider ontriggerenter oncollisionstay destroy die coroutine instantiate else enable gameobject physics destroy object audio colliders javascript
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges