How to get realistic acceleration and velocities.

tintrantintran Member Posts: 453
edited July 2015 in Miscellaneous

Let's say I have an actor that is 20 pixels (as height) tall, and I want that 20 pixels to represent 2 meters in real life.
1) What should I enter as velocity.x if i want the actor to travel at 10m/s
2) And if that actor is falling, what should i enter as acceleration (in 270 degrees) if i want the actor to fall at 9.8m/s^2?
3) And maybe explain the math behind it.

Thanks

Best Answers

  • SocksSocks London, UK.Posts: 12,822
    Accepted Answer

    @tintran said:
    Let's say I have an actor that is 20 pixels tall, and I want that 20 pixels to represent 2 meters in real life.

    1px = 10cm.

    @tintran said:
    1) What should I enter as velocity.x if i want the actor to travel at 10m/s

    10m = 1,000cm / 1,000cm (with 1px being 10cm) = 100 px / velocity.x is measured in pps / therefore velocity.x = 100

    2) And if that actor is falling, what should i enter as acceleration (in 270 degrees) if i want the actor to fall at 9.8m/s?

    Acceleration should be set at 98.

  • SocksSocks London, UK.Posts: 12,822
    Accepted Answer

    @tintran said:
    Thank you master Socks

    :p

    @tintran said:
    . . . that's a lot simpler than I was thinking..for some reason i thought velocities and acceleration had other meanings than pps (i am guessing that means pixel per second)

    Velocities are pixels per second (pps), but Acceleration is pps/s.

  • SocksSocks London, UK.Posts: 12,822
    Accepted Answer

    P.S Terminal velocity (depending on the shape of the object) is around 55m/s, so if you wanted realism you could factor that in as well, set the Max Speed (and check Apply Max Speed) to 550.

  • SocksSocks London, UK.Posts: 12,822
    Accepted Answer

    @tintran said:
    I don't think I'll be needing realistic Terminal Velocity but it's good that the information is here. So that others who might be needing it in the future can just search it up :D

    Yeah, 550pps would mean your actor wouldn't be on the screen for very long ! :smile:

  • SocksSocks London, UK.Posts: 12,822
    Accepted Answer

    @tintran said:
    hehe I keeping click Yes to "Did this answer your question" and all the answers appear on top..good thing you're quoting me otherwise reading this thread would be confusing.

    Yeah, the moving posts can often make threads pretty mysterious ! That system would work with a simple Q: "What is 2+2" . . . A: "4" . . . . but with GameSalad questions often are closer to conversations, with someone suggesting a solution, someone else adding some improvements to that solution, the OP then adding in a couple of follow up questions, then someone else addressing those follow up questions while pointing out that the first person to respond could achieve what they were suggesting without having to use a timer . . . . (etc etc) . . . and once you start reordering the linear nature of a conversation like this it can become a real mess . . . people can easily scroll down to see a highlight yellow answer, there is no real need to move them next to the OP.

Answers

  • tintrantintran Member Posts: 453

    Thank you master Socks, that's a lot simpler than I was thinking..for some reason i thought velocities and acceleration had other meanings than pps (i am guessing that means pixel per second)

  • tintrantintran Member Posts: 453

    I don't think I'll be needing realistic Terminal Velocity but it's good that the information is here. So that others who might be needing it in the future can just search it up :D

  • tintrantintran Member Posts: 453
    edited July 2015

    hehe I keeping click Yes to "Did this answer your question" and all the answers appear on top..good thing you're quoting me otherwise reading this thread would be confusing.

Sign In or Register to comment.