#DoorVariant Collider Help

1 messages · Page 1 of 1 (latest)

torn tulip
#

I cannot for the life of me figure out colliders in LabAPI. My collision event only triggers when Im standing in the middle of the doorway and I close it on myself. Is there something I'm doing wrong

#

So if i close the door on myself right now, my collision event would trigger, but it would never trigger any other way

#

DoorVariant Collider Help

pallid sluice
#

colliders are more of a unity thing rather than labapi thing

#

if i understand what you are doing, your getting the existing colliders on the door and using them for collision detection

torn tulip
#

Yea

#

I was told that doors had inbuilt colliders so I tried getting those

pallid sluice
#

the reason you only detect collisions when you close the door is that, thats the only time when the server is ahead of the client. when you walk into a door the collisions happens on the client first and the client sends the position to the server where it wont collide as the position it sent already accounted for it. if you close the door the reverse happens, the server starts moving the door on the server and client moves it later(delayed by ping), so the door collides with the player on the server(which you see)

#

there might be a better way to achieve what you want, generally you dont need that level of granularity with collisions with plugins. so what you could do is add your own colliders which are oversized

torn tulip
#

How would I create my own colliders?

pallid sluice
#

you can do AddComponent<BoxCollider>() search up Unity colliders