Hello Guest

Author Topic: Kyoob  (Read 62230 times)

0 Members and 1 Guest are viewing this topic.

Fruckert

  • Member
  • Posts: 60
  • Total Square
    • View Profile
Re: Kyoob
« Reply #15 on: September 16, 2014, 02:05:14 PM »
Code: [Select]
#region Box vs Box
if (first is BoxCollider && second is BoxCollider) {
    if (first.Right <= second.Left) return false;
    if (first.Bottom <= second.Top) return false;
    if (first.Left >= second.Right) return false;
    if (first.Top >= second.Bottom) return false;
    return true;
}
#endregion
Crashes at "second.Left"
The property itself is crashing because "second" doesn't have an Entity.
The PlatformingMovement at the time is trying to figure out if it's on the ground.

Kyle

  • Administrator
  • Member
  • Posts: 258
    • View Profile
Re: Kyoob
« Reply #16 on: September 16, 2014, 02:50:38 PM »
Hmm okay that's in the core collider code.  I'll look into this more.