#Invisible wall
1 messages · Page 1 of 1 (latest)
And you are absolutely certain the debug message didnât reveal the name of the wall?
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?
i dont know how to move a trigger
Move the object in the scene
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
elaborate because my floor is all one piece
So you only have one floor then? Not multiple chunks? If so then ignore the question
ok
what do you mean by empty space
Nvm
In this photo, how is the falling cube affected by the wall?
Oh nvm
The white one
if i shut off the collider will it work as long as i dont delete the trigger
void OnCollisionEnter(Collision other)
{
Debug.LogError($âCollided with: {other.gameObject.name}â);
}```
maybe its the script i have attached to it
Add that to the white cube
then show me the message
here is my script the goal is to apply gravity to another cube
WaitâŠ
That disables rigidbodies that collide with the triggerâŠ
So itâll âfreezeâ in place
so the script is the problem
i got it from vision elf and it was late at night so he might not have had it right
?
Well we earlier thought it was an invisible wall
it was supposed to be a trigger zone thats what i was trying to make
the term invisible wall just kinda came out
@royal rock what is the script supposed to do?
its supposed to create a rigid body on the pink cube and make it fall to the ground
So when the trigger detects something, it adds a rigidbody to the detected instead of disabling it�
idrk because i didint make the script
So what are you trying to do then
What was it supposed to do?
My Og idea was for the object to have a freeze position constraint that would be shut off when you passed the trigger zone but i didnt know how to do that so i asked for help
I have no idea what that means
Are you talking about the rigidbody freeze position constraints?
yes on the object that would be affected
I recommend just enabling kinematic instead
then the restraints would be removed when i passed the trigger zone
@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?
that was my first idea
let me show you
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
So what you want is a trigger that makes the pink object fall?
itâs way easier to just enable and disable gravity
Get reference to Rigidbody as rb
Call:
rb.useGravity = true;
Ok
Ok Iâll do it tomorrow
Im back ill make a code rn
In order to access the cube do i have to make it a public variable
yeah dog i think i did something wrong