mirror of
https://github.com/BlackMATov/unity-iso-tools.git
synced 2025-12-15 01:12:05 +07:00
physics to addons
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using UnityEngine;
|
||||
using IsoTools.Physics;
|
||||
using System.Collections;
|
||||
|
||||
namespace IsoTools.Examples.Kenney {
|
||||
@@ -8,7 +9,7 @@ namespace IsoTools.Examples.Kenney {
|
||||
if ( iso_world && Input.GetMouseButtonDown(0) ) {
|
||||
var iso_mouse_pos = iso_world.MouseIsoPosition();
|
||||
var ray_from_iso_camera = iso_world.RayFromIsoCameraToIsoPoint(iso_mouse_pos);
|
||||
var hits = iso_world.RaycastAll(ray_from_iso_camera);
|
||||
var hits = IsoPhysics.RaycastAll(ray_from_iso_camera);
|
||||
for ( var i = 0; i < hits.Length; ++i ) {
|
||||
var alien_go = hits[i].collider.gameObject;
|
||||
if ( alien_go.GetComponent<AlienBallController>() ) {
|
||||
|
||||
Reference in New Issue
Block a user