giglamesh Posted September 9, 2009 Report Share Posted September 9, 2009 imagine a camels humps (only way i can describe it) it's curves down then upwards again. (Big picture i know, but cannot scale it down) would a 360 degree engine be needed for the character to follow the cruved slope, or is just a slope engine ok for this task? i ask this because i suck at 360*engines, i can do slope engines (straight slopes), and i'm trying to work around this problem Link to comment Share on other sites More sharing options...
Felik Posted September 9, 2009 Report Share Posted September 9, 2009 Actually you don't need a 360 engine for this. It is possible to not even use additional sensors (use collision mask). But ideally you should have 2 sensors to determine angle. They should be placed under main mask and with help of fastloob "fall" every frame untill touching the ground. But still it is rather complicated so you should better use the 360 engine. Oh yes, there is a tutorial game called Zeb. It uses something like this and it is quite well explained. You can get it if you download The Games Factory demo. Link to comment Share on other sites More sharing options...
LarkSS Posted September 9, 2009 Report Share Posted September 9, 2009 Basic Static Engine Slope Finding Example The first can handle the slopes you've shown, and the second is optional if you want Sonic to rotate with the slope, though I'd probably either interpolate his rotation or get the angle between the two points rather than the direction. Link to comment Share on other sites More sharing options...
Recommended Posts