Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

847 B
Raw Blame
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
// SPDX-FileCopyrightText: Copyright (c) 2008-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

#pragma once


#include "foundation/PxPlane.h"
#include "foundation/PxMemory.h"

#if !PX_DOXYGEN
namespace physx
{
#endif

struct PxVehicleRoadGeometryState
{
	PxPlane plane;						//!< the plane under the wheel
	PxReal friction;					//!< the friction to be used by the tire model
	PxVec3 velocity;					//!< the velocity of the road geometry
	bool hitState;						//!< true if a plane is found, false if there is no plane.

	PX_FORCE_INLINE void setToDefault()
	{
		PxMemZero(this, sizeof(PxVehicleRoadGeometryState));
	}
};

#if !PX_DOXYGEN
} // namespace physx
#endif