Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: binary1 on September 02, 2013, 06:47:28 AM

Title: restricting actor to part of the floor
Post by: binary1 on September 02, 2013, 06:47:28 AM
Is there a way to restrict a 3D actor to part of the floor?  I have a scene where there is a receptionist behind a desk and the main actor is in front of the desk.  Is there a way to have the desk be between the two models?
Title: Re: restricting actor to part of the floor
Post by: Azrael on September 02, 2013, 08:31:35 AM
In a 2.5D game with geometry.
In a 2D game (but also in a 2.5D work) you have to create 2 floor and put the desk between them.

Something like that:
- floor for receptionist
- image of the desk covering the receptionist
- main floor

Also you could "cut" the receptionist image :)
Title: Re: restricting actor to part of the floor
Post by: Jose on September 02, 2013, 02:17:20 PM
I'm not sure if I understand you right but I think that you can define a region behind the desk and then use the StickToRegion method of the 3D actor to force the actor to stay in that region.
Title: Re: restricting actor to part of the floor
Post by: binary1 on September 05, 2013, 03:58:51 AM
Thanks!  I was using StickToRegion in another part of the program (I have a dog on a table) so I don't know why I didn't think to use it for the receptionist.