[How to codeit?] Wind & Ice
by Andrea Farid Marsili · in Torque Game Builder · 12/13/2010 (10:54 am) · 1 replies
I'm working on a platformer, I need to know how to perform freezed platform slide and also how to perform wind resistence.
by Andrea Farid Marsili · in Torque Game Builder · 12/13/2010 (10:54 am) · 1 replies
Torque Owner Ivan Mandzhukov
Liman3D
There is a code for slowing down the velocity that benefits from mass.
If you increase the mass of the player,you get a friction force.It works really well for icy surfaces.
All this deals with physics.
If you wish to apply a wind resistance just sum the wind direction and your velocity.This will slow down the velocity against the wind and will speed up when you move in the opposite direction.
Hope this helps.