#yeah its still not working this is rly

1 messages · Page 1 of 1 (latest)

tepid quiver
#

let's start with the first part

#

so which is it?

fierce stag
#

triggers rn

#

in 2d

tepid quiver
#

okay good

#
 public void OnTriggerStay2D(Collider2D col)
    {
        switch (col.tag)
        {
            case "Cursor":
                {
                    Debug.Log(col.tag);
                    if (Input.GetMouseButtonDown(0))
                    {
                        Debug.Log("mouse is down");
                        InteractPickup();
                    }
                    break;
#

this is your code, looks correct?

fierce stag
#

yup sure

tepid quiver
#

so you said both are triggers, yes?

fierce stag
#

so this is the bit i didnt understand a lot

#

i dont have any rigidbodies in my scene

tepid quiver
#

at least one of your triggers needs to have a rigidbody

#

that's the issue

fierce stag
#

and 2 static triggers

tepid quiver
#

it's not that it's not helping, it's that you dont understand. so dont say it doesnt help and just wave it off

past wadi
fierce stag
#

so i need a rigidbody on one object

tepid quiver
fierce stag
# tepid quiver

is there a way to override that or is it just how it works

tepid quiver
#

that's just how it works

fierce stag
#

thank you! its colliding now

tepid quiver