Brad_Mclain
Member
|
Updating RPG2 Player Controller
What I am looking to do is make adjustments to the player/camera controller to allow it up more steep slopes/staircases then what is currently possible.
I was wondering if someone can point me in the right directions in terms of the files and sections which need changing from the RPG2 sample code to make this happen.
Thanks in advance.
|
|
02-23-2011 10:01 AM |
|
Dwight
Member
|
RE: Updating RPG2 Player Controller
Something like this in Player.cpp (?):
Code:
Flt max= DegToRad(450)*Time.d(),
dx = Ms.d().x*1.7f,
dy = Ms.d().y*1.7f;
angle.x-= Mid(dx,-max,max);
angle.y+= Mid(dy,-max,max);
SnowCloud Entertainment - We are recruiting!
http://www.sc-entertainment.com
|
|
02-23-2011 12:22 PM |
|
Dynad
Member
|
RE: Updating RPG2 Player Controller
(02-23-2011 12:22 PM)Dwight Wrote: Something like this in Player.cpp (?):
Code:
Flt max= DegToRad(450)*Time.d(),
dx = Ms.d().x*1.7f,
dy = Ms.d().y*1.7f;
angle.x-= Mid(dx,-max,max);
angle.y+= Mid(dy,-max,max);
Thats the character itself and is not needed to change. What you are looking for is the Camera class in the RPG2 source.
~Dynad
There is always evil somewhere, you just have to look for it properly.
|
|
02-23-2011 01:39 PM |
|