Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Niflib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Grant Kim
Niflib
Commits
efc5a171
Commit
efc5a171
authored
17 years ago
by
Tazpn
Browse files
Options
Downloads
Patches
Plain Diff
Add SetMaterial/GetMaterial helpers to bhkNiTriStripsShape
parent
29597619
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/obj/bhkNiTriStripsShape.h
+12
-0
12 additions, 0 deletions
include/obj/bhkNiTriStripsShape.h
src/obj/bhkNiTriStripsShape.cpp
+8
-0
8 additions, 0 deletions
src/obj/bhkNiTriStripsShape.cpp
with
20 additions
and
0 deletions
include/obj/bhkNiTriStripsShape.h
+
12
−
0
View file @
efc5a171
...
...
@@ -85,6 +85,18 @@ public:
*/
NIFLIB_API
void
SetStripsData
(
int
index
,
NiTriStripsData
*
strips
);
/*!
* Get the shape's material. This determines the type of noises the object makes as it collides in Oblivion.
* \return The Oblivion material used by this collision shape.
*/
NIFLIB_API
HavokMaterial
GetMaterial
()
const
;
/*!
* Sets the shape's material. This determines the type of noises the object makes as it collides in Oblivion.
* \param[in] value The new material for this shape to use.
*/
NIFLIB_API
void
SetMaterial
(
HavokMaterial
value
);
//--END CUSTOM CODE--//
protected:
/*! The shape's material. */
...
...
This diff is collapsed.
Click to expand it.
src/obj/bhkNiTriStripsShape.cpp
+
8
−
0
View file @
efc5a171
...
...
@@ -219,4 +219,12 @@ void bhkNiTriStripsShape::SetScale( const Vector3 & n ) {
scale
=
n
;
}
HavokMaterial
bhkNiTriStripsShape
::
GetMaterial
()
const
{
return
material
;
}
void
bhkNiTriStripsShape
::
SetMaterial
(
HavokMaterial
value
)
{
material
=
value
;
}
//--END CUSTOM CODE--//
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment