Welcome Guest [Log In] [Register]
Welcome to Zoo Tycoon 2 Designing Centre (ZTDC). We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Walk Through Objects
Topic Started: May 31 2009, 07:16 AM (1,068 Views)
Sophie
Member Avatar
Dutch Designer
Expert
I've made an object, but in game, you can walk through it. How do I get it so that you can't walk through it anymore??
Posted Image
Offline Profile Quote Post Goto Top
 
Penguinman
Member Avatar
Admin and Coding Master
Admin
Did you edit the model in anyway?
Check out my site where you can get many of my downloads here.
Posted Image
Offline Profile Quote Post Goto Top
 
Sophie
Member Avatar
Dutch Designer
Expert
Yeah. I put a lot of models in one.
Posted Image
Offline Profile Quote Post Goto Top
 
HENDRIX
Member Avatar
I eat blender for breakfast.
Moderators
Add some kind of collision in the nif, simba said how to do in the object contest thread. ;)
Posted Image
Designing Resources
Offline Profile Quote Post Goto Top
 
Sophie
Member Avatar
Dutch Designer
Expert
Quote:
 
For collision, open the model in the Block list select the Top most Ninode, underwhich everything else comes, right click it then FLAGS, then uncheck hidden if checked and CHECK Skin influence if not and then in the drop down list choose TRIANGLES, that shd work I guess.....



I did this (as Simba said it that topic) but it doesn't make any difference.
Posted Image
Offline Profile Quote Post Goto Top
 
Simba
Member Avatar
The Most Extreme!
Expert
Wait, instead of triangles, try Bounding box, that shd work ;) But I thot Triangles worked well already, but the Bounding box shd definately Work :)
Posted Image

Aurora Designs
Offline Profile Quote Post Goto Top
 
Sophie
Member Avatar
Dutch Designer
Expert
It doesn't :(.
Posted Image
Offline Profile Quote Post Goto Top
 
Simba
Member Avatar
The Most Extreme!
Expert
:o What object is it?
Posted Image

Aurora Designs
Offline Profile Quote Post Goto Top
 
Penguinman
Member Avatar
Admin and Coding Master
Admin
Usually what I do is make the base model what I want the collision to be, but make it see through. Then I add the other models on top using the xml.
Check out my site where you can get many of my downloads here.
Posted Image
Offline Profile Quote Post Goto Top
 
Simba
Member Avatar
The Most Extreme!
Expert
I realized, U have to add a NiCollisionData, and set targets and choose the Collision Type as BOX_BV and set the extents. That is how it works....
Posted Image

Aurora Designs
Offline Profile Quote Post Goto Top
 
Sophie
Member Avatar
Dutch Designer
Expert
Sophie,May 31 2009
09:16 AM
I've made an object, but in game, you can walk through it. How do I get it so that you can't walk through it anymore??

I got this problem again. I made the Jeeps placeble but you can walk through them.
Posted Image
Offline Profile Quote Post Goto Top
 
HENDRIX
Member Avatar
I eat blender for breakfast.
Moderators
I found out how to fix it a few days ago, at least it worked for my geysir.

The xml needs this line:

Quote:
 
<BFGCollisionData isPassable="false" isStatic="true"/>
Posted Image
Designing Resources
Offline Profile Quote Post Goto Top
 
Sophie
Member Avatar
Dutch Designer
Expert
It doesn't work for the placeble Jeep I made :(.
Posted Image
Offline Profile Quote Post Goto Top
 
HENDRIX
Member Avatar
I eat blender for breakfast.
Moderators
And you have to paste in a collision node from a bench for example (in the nif).
Posted Image
Designing Resources
Offline Profile Quote Post Goto Top
 
Penguinman
Member Avatar
Admin and Coding Master
Admin
Here's what I do in that scenario, there might be a better solution but I'm not good with models so I stick to what I know - the xml.

Take an object that has the collisions you desire (for one square I like to use the small tundra rock cause it has no LODs, but you probably need something bigger).
Then, you want to make the model invisible by making the alpha channel all black and making the model have an alpha property.
Make this invisible model the primary model in the xml.

Now, take the jeep nif, and add it to the xml as an extra model. This way, the collision will be based on the invisible one, but the appearance will be of the jeep.

Hope this helps, good luck!
Check out my site where you can get many of my downloads here.
Posted Image
Offline Profile Quote Post Goto Top
 
« Previous Topic · Object Coding Help · Next Topic »
Add Reply