HI, im new at newton and i want to start work with it.
now im having hard time to understand it.
my body dont have collision at all the body just pass the floor...
this is getting very annoying.

this is my basic function:


include <newton.wdl>;
include <newtonscript2.wdl>;

var video_mode = 8;
var video_screen = 2;

var ground_material;
var body_mat;

string lvl_str = "test.wmb";
string newtonLevel_cls = "test.cls";

function camera_control();

entity* tank_body;
var newton_tank_body;

action tank_main
{
var mass;
tank_body = me;

dll_handle=newtonHandle;

newton_tank_body = NewtonSpawnEntity(tank_body,1);
NewtonSetBodyMass(newton_tank_body,100.0);
//ApplyGravityForceEvent(newton_tank_body);
NewtonSetBodyLinearDamp(newton_tank_body,0.0);
NewtonSetBodyAngularDamp(newton_tank_body,0.05,0.05,0.05);
NewtonSetBodyAutoActiveState(newton_tank_body,1);
NewtonSetBodyActiveState(newton_tank_body,1);
NewtonSetBodyMaterial(newton_tank_body,body_mat);
NewtonAddDryFriction(newton_tank_body,0.1);
}

function start_game()
{

dll_handle = newtonHandle;
NewtonSetUnitSystem(QUANT_IS_METER);

ground_material=0;

NewtonMaterialSetFriction (ground_material, ground_material, 1.0, 1.0);
NewtonMaterialSetElasticity (ground_material, ground_material, 0.01);
NewtonMaterialSetDepthRecover (ground_material, ground_material, 0.1);
NewtonMaterialSetCollisionEnd (ground_material, ground_material, collisionend_event);
NewtonMaterialCollisionBegin (ground_material, ground_material, collisionbegin_event);
NewtonMaterialCollisionContact (ground_material, ground_material, collisioncontact_event);


body_mat = NewtonCreateMaterial();

NewtonMaterialSetFriction (body_mat, ground_material, 0.8, 0.5);
NewtonMaterialSetElasticity (body_mat, ground_material, 0.3);
NewtonMaterialSetDepthRecover (body_mat, ground_material, 0.01);


ent_create("body.mdl",vector(0,0,50),tank_main);



}

function main()
{
wait(1);
level_load(lvl_str); // Load level
wait(5);

dll_handle=newtonHandle; // Get newton Handle
NewtonAddMap(lvl_str,0); // Load newton
wait(1);

camera_control();

start_game();

} Code: