add raycast accelerator for btHeightfieldTerrainShape, thanks to Marc Zylann, see https://github.com/bulletphysics/bullet3/pull/2062
it can be disabled by setting the flag cb.m_flags |= btTriangleRaycastCallback::kF_DisableHeightfieldAccelerator; acceleration is disabled for z axis up. add btHeightfieldTerrainShape example to example browser
This commit is contained in:
1116
examples/Heightfield/HeightfieldExample.cpp
Normal file
1116
examples/Heightfield/HeightfieldExample.cpp
Normal file
File diff suppressed because it is too large
Load Diff
21
examples/Heightfield/HeightfieldExample.h
Normal file
21
examples/Heightfield/HeightfieldExample.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
Bullet Continuous Collision Detection and Physics Library
|
||||
Copyright (c) 2015 Google Inc. http://bulletphysics.org
|
||||
|
||||
This software is provided 'as-is', without any express or implied warranty.
|
||||
In no event will the authors be held liable for any damages arising from the use of this software.
|
||||
Permission is granted to anyone to use this software for any purpose,
|
||||
including commercial applications, and to alter it and redistribute it freely,
|
||||
subject to the following restrictions:
|
||||
|
||||
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
|
||||
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
*/
|
||||
|
||||
#ifndef HEIGHTFIELD_EXAMPLE_H
|
||||
#define HEIGHTFIELD_EXAMPLE_H
|
||||
|
||||
class CommonExampleInterface* HeightfieldExampleCreateFunc(struct CommonExampleOptions& options);
|
||||
|
||||
#endif //HEIGHTFIELD_EXAMPLE_H
|
||||
Reference in New Issue
Block a user