Player collision materials

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Player collision materials

Postby dpadam450 » Wed Aug 27, 2008 11:34 pm

First, I've been asking a lot of questions lately, but I do spend time looking at the tutorials and documentation. I'm pleased thus far.

I have a rigidbody that is a box. I move him with WSAD. Initially he starts in the air and falls to the ground and he doesnt bounce back up. When I run into a staircase, the box doesnt stay on the staircase like it should, instead it bounces into the air.
Do I need to use a callback? because the materials seem to work only when the player isnt moving.
Code: Select all
//Materials
int Player_mat = NewtonMaterialCreateGroupID(nWorld);
NewtonMaterialSetDefaultSoftness (nWorld, Player_mat, Player_mat, 0);
NewtonMaterialSetDefaultElasticity (nWorld, Player_mat, Player_mat, 0);
NewtonMaterialSetDefaultFriction (nWorld, Player_mat, Player_mat, 1, 1);
dpadam450
 
Posts: 7
Joined: Mon Jun 23, 2008 10:02 pm

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests