#Invisible wall

1 messages · Page 1 of 1 (latest)

muted crypt
#

And you are absolutely certain the debug message didn’t reveal the name of the wall?

royal rock
#

ill look again

#

this is all i see

muted crypt
# royal rock this is all i see

Try moving the trigger and see you can click anything in that space?

Also by chance is that space also an edge where 2 “floor” edges meet?

royal rock
muted crypt
#

Click the empty space

#

See if you can tap the invisible object

#

@royal rock but more importantly, is that area a place where 2 “floor”edges meet

royal rock
muted crypt
royal rock
muted crypt
#

Nvm

#

In this photo, how is the falling cube affected by the wall?

#

Oh nvm

#

The white one

royal rock
#

if i shut off the collider will it work as long as i dont delete the trigger

muted crypt
#
void OnCollisionEnter(Collision other)
{
Debug.LogError($”Collided with: {other.gameObject.name}”);

}```
royal rock
#

maybe its the script i have attached to it

muted crypt
#

then show me the message

royal rock
#

here is my script the goal is to apply gravity to another cube

muted crypt
#

Wait


muted crypt
#

So it’ll “freeze” in place

royal rock
#

so the script is the problem

muted crypt
#

Yes

#

It’s not an invisible wall.

royal rock
#

i got it from vision elf and it was late at night so he might not have had it right

royal rock
muted crypt
royal rock
#

the term invisible wall just kinda came out

muted crypt
#

@royal rock what is the script supposed to do?

royal rock
muted crypt
royal rock
muted crypt
#

What was it supposed to do?

royal rock
muted crypt
muted crypt
royal rock
hasty wren
#

I recommend just enabling kinematic instead

royal rock
#

then the restraints would be removed when i passed the trigger zone

muted crypt
#

@royal rock you’re just confusing me more and more. Why do you want to add constraints

#

What are the “constraints”. You’re referring to the rigidbody ones?

royal rock
#

These constraints would be deactivated when i passed the trigger zone

#

Its midnight where i live man can we go over this tomorrow morning because im not thinking straight anymore

hasty wren
#

So what you want is a trigger that makes the pink object fall?

muted crypt
# royal rock

it’s way easier to just enable and disable gravity

#

Get reference to Rigidbody as rb

Call:
rb.useGravity = true;

royal rock
#

Ok I’ll do it tomorrow

royal rock
royal rock
#

yeah dog i think i did something wrong

royal rock
#

well when you get back i did this so now i just have to link it

#

i can pass by it now but the code doesnt work