Author Topic: Friction in custom physics  (Read 1311 times)

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Friction in custom physics
« on: September 15, 2018, 12:38:16 PM »
An option that modifies friction: 100 will be that player will never finish moving until the player reverse the direction or jumps
0 will be that instantly the player will stop when the arrow key pressed releases.

For example, with friction 0: I'm moving the player to the left, and when I release the left key, instantly the character will stop moving. Useful for one of my projects.
Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Friction in custom physics
« Reply #1 on: September 15, 2018, 04:16:19 PM »
 I think I get it.  Sounds interesting!

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Re: Friction in custom physics
« Reply #2 on: September 15, 2018, 05:05:19 PM »
Good!
Sorry because my English is not very good because I'm Spanish ;) :P