Hello!
I've been doing some basic testing in MAX before getting down to some more serious work in creating a level for a game prototype. I wanted to do something that I thought would be very simple - create a door that slides open. So far, I've not been successful. I'm going to list what I've done and what the results have been and I hope that someone where can help me to resolve my issues. I am certain a good bit of this is my own fault, but some of it may be MAX's? I just don't know, so any help would be appreciated.
My first step was to create a very, very basic door with a sliding open and sliding closed animation and get it into MAX. My modeler of choice is Blender 2.93.6.
I created a basic door and did an Apply All to set the scale, rotation, etc. of the model:
Then I created a simple keyframe animation with three actions - Open, Close, and NoAnim:
This simple animated model was then exported to MAX as an FBX file and named Door_9 (my 9th test with this) and then imported into MAX. In this case, the door comes into MAX with all animations present:
I check off Static Object Mode, set Collision to Box, ensure the animations are named Open, Close, and NoAnim and set NoAnim as the default by clicking it's check circle. Then I import by clicking the Import Object button, make the screen shot, and click to bring it into my empty scene.
After placing a player start position and running the game, I run into my first issue - the player can walk through the door. There is no collision detection. Selecting the door shows that Collision shape is set to Box. Physics is set to Physics on and Show at start of level is checked. So, why does my player walk through the door? Looking at other doors supplied with MAX, they all seem a bit different. Some are "Static Mode" and some are "Physics". Some have "Affected by gravity" as a check box and some do not. Now, my previous imports of my simple door had the "Affected by gravity" check box and this one does not. I have no idea why they sometimes do and sometimes don't. But when they do and that box is checked, the door normally either drops through the ground or falls over and bounces a bit. But in none of the cases does the door block my character.
Guess what? After adding in some of MAX's doors, the Affected by gravity check box suddenly has appeared for my door, too. It wasn't there before. Now my door falls through the grid floor when I run the game ... even if Affected by gravity is unchecked. Nice. Setting Physics to Physics off solves this, but then my player can just walk right through the door anyway.
The good news is the Door behavior works. It will open if "E" is pressed and close, too. But what good is that if I can just walk through it.
So, what am I doing wrong? How do I fix this? If I can import an animated door that will block my player and open with the Door behavior, then I feel I can actually start making something in MAX.
Any help would be appreciated.
Intel i9-10900K 5.10GHz, 64 GB RAM, Nvidia GTX 1080 ti 11GB, Windows 10 64-bit, dual monitor display