Wheelchair behavior
Asked Answered
M

3

0

Hi guys! The hero from the 2D game I'm developing has some accessibility issues, so she needs a wheelchair to move through the scene. I'm trying to create a behavior of a person over a wheelchair on a non flat terrain or slopes. It means the hero body should tilt front and backward, depending the wheelchair position on the terrain or even according to the wheelchair movement. I was trying to use some joint to do that but it doesn't work. Any clue about how I can develop this behavior?
Thanks in advance. 🙂

Manville answered 30/1, 2023 at 22:58 Comment(0)
P
0

Are you talking about tilting the whole person + wheelchair sprite, or separating them so the person's torso can tilt at different angles to the chair?

Portsalut answered 31/1, 2023 at 20:34 Comment(0)
M
0

Portsalut I meant tilt the person torso in different angles, but in some cases tilting the chair could be needed too, because the floor may be not flat.

Manville answered 31/1, 2023 at 23:51 Comment(0)
P
0

I don't think that should be too hard. Make the torso its own sprite, adjust the offset so that the hip (or where the hip would be, if it's not visible) is the center of the sprite, and then you can adjust the rotation of just that sprite to make it look like the person is leaning.

Portsalut answered 1/2, 2023 at 1:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.