Ajout de Jolt Physics + 1ere version des factory entitecomposants - camera, transform, rigidbody, collider, renderer
This commit is contained in:
42
lib/All/JoltPhysics/Samples/Tests/Vehicle/VehicleTest.h
Normal file
42
lib/All/JoltPhysics/Samples/Tests/Vehicle/VehicleTest.h
Normal file
@@ -0,0 +1,42 @@
|
||||
// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
|
||||
// SPDX-FileCopyrightText: 2021 Jorrit Rouwe
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <Tests/Test.h>
|
||||
|
||||
// This is the base class for vehicle tests, it will create some sample geometry
|
||||
class VehicleTest : public Test
|
||||
{
|
||||
public:
|
||||
JPH_DECLARE_RTTI_VIRTUAL(JPH_NO_EXPORT, VehicleTest)
|
||||
|
||||
// See: Test
|
||||
virtual void PrePhysicsUpdate(const PreUpdateParams &inParams) override;
|
||||
virtual void Initialize() override;
|
||||
|
||||
// Optional settings menu
|
||||
virtual bool HasSettingsMenu() const override { return true; }
|
||||
virtual void CreateSettingsMenu(DebugUI *inUI, UIElement *inSubMenu) override;
|
||||
|
||||
private:
|
||||
// List of possible scene names
|
||||
static const char * sScenes[];
|
||||
|
||||
// Filename of animation to load for this test
|
||||
static const char * sSceneName;
|
||||
|
||||
void CreateBridge();
|
||||
void CreateWall();
|
||||
void CreateRubble();
|
||||
void LoadRaceTrack(const char *inFileName);
|
||||
|
||||
// A set of line segments to render a race track
|
||||
struct Line
|
||||
{
|
||||
RVec3 mStart;
|
||||
RVec3 mEnd;
|
||||
};
|
||||
Array<Line> mTrackData;
|
||||
};
|
||||
Reference in New Issue
Block a user