public Nolo_Transform(NoloVR_Plugins.Nolo_Pose pose) { this.pos.x = pose.pos.x; this.pos.y = pose.pos.y; this.pos.z = pose.pos.z; this.rot.w = pose.rot.w; this.rot.x = pose.rot.x; this.rot.y = pose.rot.y; this.rot.z = pose.rot.z; }
public Nolo_Transform(NoloVR_Plugins.Nolo_Pose pose) { this.pos.x = pose.pos.x; this.pos.y = pose.pos.y; this.pos.z = pose.pos.z; this.rot.w = pose.rot.w; this.rot.x = pose.rot.x; this.rot.y = pose.rot.y; this.rot.z = pose.rot.z; this.vecVelocity.x = pose.vecVelocity.x; this.vecVelocity.y = pose.vecVelocity.y; this.vecVelocity.z = -pose.vecVelocity.z; this.vecAngularVelocity.x = pose.vecAngularVelocity.x; this.vecAngularVelocity.y = pose.vecAngularVelocity.y; this.vecAngularVelocity.z = pose.vecAngularVelocity.z; }
public static Nolo_Transform GetPoseByDeviceType(int deviceIndex) { NoloVR_Plugins.Nolo_Pose result = new NoloVR_Plugins.Nolo_Pose(); int battery = get_Nolo_Battery(deviceIndex); Nolo_Pose pose = get_Nolo_Pose(deviceIndex); result.pos.x = pose.pos.x; result.pos.y = pose.pos.y; result.pos.z = pose.pos.z; result.rot.w = pose.rot.w; result.rot.x = pose.rot.x; result.rot.y = pose.rot.y; result.rot.z = pose.rot.z; result.vecVelocity.x = pose.vecVelocity.x; result.vecVelocity.y = pose.vecVelocity.y; result.vecVelocity.z = pose.vecVelocity.z; result.vecAngularVelocity.x = pose.vecAngularVelocity.x; result.vecAngularVelocity.y = pose.vecAngularVelocity.y; result.vecAngularVelocity.z = pose.vecAngularVelocity.z; result.bDeviceIsConnected = battery > 0 ? true : false; return(new Nolo_Transform(result)); }