how did you make this physics? I've been trying for three weeks, but there are bugs. Can you give me the source physics code?
Do you mean the general movement and collision when you say physics? You probably want to look into raypicking (Any ray action). The heightmap example makes simple use of this functionality.