Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ContactPoint.otherCollider

public var otherCollider: Collider;

Description

The other collider in contact.

	// Prints the name of the collider this transform collided with
	function OnCollisionEnter(other : Collision) { 
		print("This collider collided with: " + other.contacts[0].otherCollider.name);
	}