39 lines
1.2 KiB
C++
39 lines
1.2 KiB
C++
// Filename: physxSphereForceFieldShapeDesc.cxx
|
|
// Created by: enn0x (06Nov09)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) Carnegie Mellon University. All rights reserved.
|
|
//
|
|
// All use of this software is subject to the terms of the revised BSD
|
|
// license. You should have received a copy of this license along
|
|
// with this source code in a file named "LICENSE."
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#include "physxSphereForceFieldShapeDesc.h"
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PhysxSphereForceFieldShapeDesc::set_radius
|
|
// Access: Published
|
|
// Description: Radius of shape. Must be positive.
|
|
////////////////////////////////////////////////////////////////////
|
|
void PhysxSphereForceFieldShapeDesc::
|
|
set_radius(float radius) {
|
|
|
|
_desc.radius = radius;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: PhysxSphereForceFieldShapeDesc::get_radius
|
|
// Access: Published
|
|
// Description: Radius of shape.
|
|
////////////////////////////////////////////////////////////////////
|
|
float PhysxSphereForceFieldShapeDesc::
|
|
get_radius() const {
|
|
|
|
return _desc.radius;
|
|
}
|
|
|