a portal game

okay , i want to make a portal game, i got it working!,but now with unity3,it no longer works,
you can get the asset’s here : http://www.yogware.bluegillstudios.com/Files/Portal.zip
can someone help me out ?

wow good work man.

It works 50% on unity 3.3.

So but I havent got find out the problem yet. :face_with_spiral_eyes: What I see is that: it copy the room when I create the second portal. But when I walk in there it place me at the right place but I have some velocity in a direction.
So what I wanna say is that your game is good but I dont understand it. :frowning: Sorry I cant help you.

But one thing I wanna know how do you create the hole in the mesh after creating the second portal?

realm_1

there’s a scipt called master it controls what and when you see somthing in a portal

It seems some of the internal timing in unity 3.0 has changed. After running your project inside unity 3.0 I keep getting an error that material has no color property. Seems like its trying to access a partially created object or something. (Cause material does have a color property! Sounds like a javascript support bug to me.)

Also there is a bug in your portal transformations, if you shoot through a portal the second portal doesn’t end up in the right location + orientation.

You might wanna consider making this static functionality on the portal class. That way when someone adds a portal you’d know exactly how many portals existed and how to link/destroy the portals. In other words making a static CreatePortal(Vector3 position, Quaternion orientation) method that returns the newly created portal instance. It could also do some timing hacks to work around the javascript bug. (Like creating the instance immediately, and initializing it next frame or something)

I hope you get it to work cause I really like what I’m seeing.