Hello Guest

Author Topic: OnTriggerEnter  (Read 5929 times)

mike2d

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 63
    • View Profile
OnTriggerEnter
« on: July 21, 2012, 11:34:51 am »
hi,

I've noticed that when moving a sprite in a collider with trigger, OnTriggerEnter was called every time the sprite changes its direction...

is this intentional ?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: OnTriggerEnter
« Reply #1 on: July 21, 2012, 11:48:57 am »
OnTriggerEnter is called by the Unity collider system and originates from the PhysX callback system.
This is probably expected behaviour.

I suggest trying it with a normal box to see what happens there. Shouldn't be any different.