Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Changing Character's Altitude  (Read 3618 times)

0 Members and 1 Guest are viewing this topic.

Derrek3D

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 82
    • View Profile
Changing Character's Altitude
« on: November 09, 2008, 11:44:39 AM »

Hello,

I'm interested in suggestions on how to implement changing the 3D character's altitude on a scene. I mean things like climbing a ladder, climbing a rope, going up or down the stairs, etc. How can you move the character up without causing it to get smaller (scaled down)? What happens to the character's shadow once he leaves the ground (when climbing a rope for example)?

Thanks.
Logged

FogGobbler

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 228
    • View Profile
Re: Changing Character's Altitude
« Reply #1 on: November 10, 2008, 08:35:42 AM »

Hi!

You can change the position of the actor by using

Code: [Select]
actor.PosX = ???;
actor.PosY = ???;
actor.PosZ = ???;
actor.Scale = ???;
actor.DropToFloor = false;

<---important! Otherwise the character is stuck to the "ground/walk"-mesh

Since the size of the 3D character is determined by its position in the 3D world you don´t have to bother about the scale. If the character gets smaller, you are moving it away from the camera and not vertically.

If you use stencil shadows everything should be fine, if you move the character vertically, because the shadow is only projected onto the "shadow"-mesh. I don´t know how the other shadow types would react.

Bye, Oli
Logged

Derrek3D

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 82
    • View Profile
Re: Changing Character's Altitude
« Reply #2 on: November 10, 2008, 05:11:53 PM »

It works great. Thank you very much!
Logged
 

Page created in 0.041 seconds with 18 queries.