Jump to content

Recommended Posts

I'm trying to have a 2.5d looking object look like one plane is always facing a certain direction. Let's say it's a simple wall for convenience. I'm having trouble keeping a plane of the wall always face, say, North, so essentially the wall would look like its orientation doesn't rotate when you rotate the camera and like it stays in the orientation it is placed. I've looked into the script for farmplots because that's a similar thing I want to emulate, but that script calls up many different images independently from the farm_decor TEX, like rocks and fence posts and are all placement defined for orientation on what I assume is the x and y axis. It's been confusing me and there has to be an easy way I just can't see right now. Any suggestions would be very helpful.

Edited by Zackrb7

You want what? For starters, 2.5 D is nonsense when talking mathematically.

 

I assume you want something like creatures having a front, back and two sides? There's a function called "SetFourFaced" that manipulates the animation used in a weird way that's totally opaque to me, but it works somehow.

 

EDIT: the pig king does stuff with camera orientation. If you know faintly what Sinus, Cosinus and Tangens (and their respective arcus-thingies) are, you should check out the whole chunk of code.

 

TheCamera:GetDownVec()

Edited by Mobbstar

Thank you for the response. Sorry for my poor use of words. I'm still learning and I don't know the proper names for most things, so I use what sounds like it fits- which I'm sure is just really confusing. Doesn't the the Pig King's sprite face camera? To clarify on the original post, my goal is to have a prefab which has a different look at each camera rotation because it isn't square. Like a wall that looks static in 3d space, stuck to where it is originally placed. The same look that would happen if you placed 6 blocks of wall attached to each other in a straight line, but as one entity.

Edited by Zackrb7

Woe...wait a tic.....is there a way to create a charecter that has....two different sides of his face? just as an example, if I wanted to make 2 face from batman, would it be possible? Or better yet....Mobbstar?

Edited by RedRock911

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...