PhysicalInstance now has a getBox() method that returns a Box the same way it would have been rendered, also added is a getCFrameRenderBased() which returns the CFrame that would have been used in the render pass
24 lines
438 B
C++
24 lines
438 B
C++
#pragma once
|
|
#include "instance.h"
|
|
|
|
class PhysicalInstance :
|
|
public Instance
|
|
{
|
|
public:
|
|
PhysicalInstance(void);
|
|
~PhysicalInstance(void);
|
|
Vector3 size;
|
|
Vector3 velocity;
|
|
Vector3 rotvelocity;
|
|
CoordinateFrame cFrame;
|
|
Color3 color;
|
|
Vector3 getPosition();
|
|
void setPosition(Vector3);
|
|
CoordinateFrame getCFrame();
|
|
void setCFrame(CoordinateFrame);
|
|
Box getBox();
|
|
CoordinateFrame getCFrameRenderBased();
|
|
private:
|
|
Vector3 position;
|
|
};
|