|
@@ -81,7 +81,7 @@ void CharacterBaseTest::Initialize()
|
|
|
else if (strcmp(sSceneName, "ObstacleCourse") == 0)
|
|
|
{
|
|
|
// Default terrain
|
|
|
- CreateFloor(300.0f);
|
|
|
+ CreateFloor(350.0f);
|
|
|
|
|
|
{
|
|
|
// Create ramps with different inclinations
|
|
@@ -177,6 +177,11 @@ void CharacterBaseTest::Initialize()
|
|
|
mBodyInterface->CreateAndAddBody(bcs, EActivation::Activate);
|
|
|
}
|
|
|
|
|
|
+ {
|
|
|
+ // A floating static block
|
|
|
+ mBodyInterface->CreateAndAddBody(BodyCreationSettings(new BoxShape(Vec3::sReplicate(0.5f)), Vec3(30.0f, 1.5f, 0.0f), Quat::sIdentity(), EMotionType::Static, Layers::NON_MOVING), EActivation::DontActivate);
|
|
|
+ }
|
|
|
+
|
|
|
{
|
|
|
// Create ramp
|
|
|
BodyCreationSettings ramp(new BoxShape(Vec3(4.0f, 0.1f, 3.0f)), cRampPosition, cRampOrientation, EMotionType::Static, Layers::NON_MOVING);
|