3 #include <reactphysics3d/collision/shapes/SphereShape.h>
57 if (this->world !=
nullptr && this->world !=
world) {
58 Console::println(
"Sphere::createCollisionShape(): already attached to a world.");
Dynamic physics world class.
reactphysics3d::PhysicsCommon physicsCommon
Bounding volume interface.
reactphysics3d::Transform collisionShapeLocalTransform
Vector3 collisionShapeLocalTranslation
reactphysics3d::CollisionShape * collisionShape
Sphere physics primitive.
Sphere()
Public constructor.
void destroyCollisionShape() override
Destroy collision shape.
void setScale(const Vector3 &scale) override
Set local scale.
~Sphere()
Public destructor.
void createCollisionShape(World *world) override
Create collision shap.
BoundingVolume * clone() const override
Clones this bounding volume.
Vector3 class representing vector3 mathematical structure and operations with x, y,...
Vector3 & scale(float scalar)
Scales by scalar.
Vector3 & set(float x, float y, float z)
Sets this vector3 by its components.