Hello Community,
Any troubles on getting the character controller from darkphysics work on BW terrain? I mean, it stands on it but I am not able to move the character contoller. Here is my code:
BW Terrain Creation for physics:
//APPLY PHYSICS TO TERRAIN
if object exist(terrfinalobj) = 1
delete object terrfinalobj
bt maketerrainobject terr, 2, terrfinalobj
bt updateterrainobjects terr
phy make rigid body static mesh terrfinalobj
endif
Character Controller Creation Code:
PHY Make Box Character Controller charactercollision, Object Position X(charactercollision), Object Position Y(charactercollision), Object Position Z(charactercollision), 25, 0.4, 25, 5, 10, 5
Character Controller Moving Code:
PHY Move Character Controller charactercollision, -val(characterwalkingforwardspeed$)
Where -val(characterwalkingforwardspeed$) represents a value that is given by my interface to select the speed of the movement
Character Controller Falling Speed Code:
PHY Move Character Controller charactercollision, 99.9
PHY Move Character Controller charactercollision, -99.9
Thank you very much!
Alex Matei CEO
www.alexmatei.com