Product Chat (Early Access) / Locker door won't operate properly

Author
Message
CaptCanada
2
Years of Service
User Offline
Joined: 22nd Jun 2022
Location: Canada
Posted: 2nd Dec 2023 21:12
Hi all

I have added a locker and a locker door. When I add a non animated door behavior to the door, it either falls down at the start of the level or if gravity is off, it floats around weirdly.

I've made sure the behavior is the same as another door I have added as that one works properly, i.e. press E to open/close.

Thanks
AMD 3700X, Gigabyte 3060 12G, Corsair 16G DDR4 3200Mhz, Asus VG27AQ 1440P 120Hz,
Saitek X52 Pro HOTAS
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 2nd Dec 2023 21:52
Try it with physics off.
Been there, done that, got all the T-Shirts!
PM
Monkey Frog
4
Years of Service
User Offline
Joined: 5th Feb 2020
Location:
Posted: 2nd Dec 2023 23:31
Also, tick 'isimmoble'.
Intel i9-10900K 5.10GHz, 64 GB RAM, Nvidia RTX 3090 ti 24GB, Windows 11 64-bit, dual monitor display
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 3rd Dec 2023 10:18 Edited at: 3rd Dec 2023 10:19
@Monkey Frog: With physics off on an object isimmobile doesn't actually do anything.

For a physics object it does two things, 1) Ignores the Bullet engine position updates for that object and 2) allows a dynamic object to have polygon collision shape. Obviously with physics off there is no physics object at all.

My guess in this case is that both the locker and the door are physics objects and their shapes are overlapping causing the engine some grief, by turning physics shape off for the door they will be able to coexist happily together. The player will not really notice as the collision shape of the locker will still be there.

It will mean that the player would then be able to walk through the door itself when open but that is such a common occurrence in 3D games I doubt anyone will gripe about that.

If you want to go all out for realism then the proper way would be to create a physics hinge between the door and the locker and open/close it by controlling the hinge angle but there is no stock behaviour for that I believe.
Been there, done that, got all the T-Shirts!
PM
puzzle20
1
Years of Service
User Offline
Joined: 22nd Jan 2023
Location:
Posted: 10th Dec 2023 07:06
Use blender instead. A door is one rectangle and one boner and you can use in any engine.
PM

Login to post a reply

Server time is: 2024-07-20 17:18:42
Your offset time is: 2024-07-20 17:18:42