Jump to content

Importing maze model problems


jessewisener
 Share

Recommended Posts

Leadwerks 3.1 Indie

 

I've looked for hours for a solution to these problems regarding a maze model I made in Blender and I can't find any, which means the solutions must be right under my nose.

 

Problem one:

I imported the maze model and I can't seem to set the physics correctly so that the player doesn't fall through the model. The model contains 3 pieces: floor, walls, and walls-top. I set each of them to rigid body and I have tried both Scene and Prop for collision type. Character is set to Rigid Body and collision type is Character.

 

Proplem two:

I can't seem to turn off smooth shading on the maze model. I have gone into Edit Model and calculated the normals as one video showed, but no dice.

 

Any help would be appreciated. Thanks.

 

-Jesse

Link to comment
Share on other sites

Scene is for static geometry, prop is for dynamic stuff (pushable boxes etc). Have you generated a physics model for your objects? Assuming you haven't already, do the following:

 

1. R-click on the mesh in the assets tab, selecting "generate shape" and picking one of the two options. Since these seem to be static meshes that you're going to be walking around, I'd suggest you pick "polymesh". It'll prompt you to save the resulting PHY file. Give it a name and save it to an appropriate folder.

 

2. Place the mesh in the scene, click on the "Scene" tab on the right and select the physics tab at the bottom to edit the physics settings. Change the "Shape file" to the PHY file you generated. Set collision type to scene.

 

3. Save the map and test.

 

Hopefully that works, because otherwise I'm fresh out of ideas.

Link to comment
Share on other sites

How do you move the character? Are you using SetPhysicsPosition too or just Move? As far as I know, you have to set the physics position to the player's position too otherwise it's not updated and stays at the start position. Also I guess you would have to move your character in UpdatePhysics function.

Link to comment
Share on other sites

No collision system and particular features as planes not colliding is not documented.

 

I try to not ask for help as much as possible

You should ask, sometimes people will bring you solutions, documentation is one thing, what people try to do is another and you'll find also problems solutions on "programming" and "Bug Reports" also.

Stop toying and make games

Link to comment
Share on other sites

You can create a generic collision model (with a little volume) and import that. Right click it in the assets section and say Generate Shape (you might be able to do this on your current model but it might be too skinny).

 

You can also supplement your current model with csg with the invisible material painted on it to give collision.

Link to comment
Share on other sites

I try to not ask for help as much as possible

You should ask, sometimes people will bring you solutions, documentation is one thing, what people try to do is another and you'll find also problems solutions on "programming" and "Bug Reports" also.

 

True. Just want to make sure I RTFM'd first. :)

 

So does the single plane answer also explain why I have perpetual smooth shading?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...