Game Development Community

[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.

#1
12/13/2010 (2:22 pm)
I have never worked with TGB,but in T3D this is fairly easy to do.
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.