-
Notifications
You must be signed in to change notification settings - Fork 0
/
rotation.h
22 lines (13 loc) · 906 Bytes
/
rotation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <irrlicht.h>
#include "types.h"
#include <vector>
using namespace irr;
core::vector3df getClosestPointOnLine
( const core::vector3df& axis,const core::vector3df& pivot,const core::vector3df& point);
//both axis and pivot are in world space
void revolveNodeInWorldSpace(scene::ISceneNode* node, f32 degs, const core::vector3df& axis, const core::vector3df& pivot);
void invrevolveNodeInWorldSpace(scene::ISceneNode* node, f32 degs, const core::vector3df& axis, const core::vector3df& pivot);
void rotateNodeInLocalSpace(scene::ISceneNode* node, f32 degs, const core::vector3df& axis);
void invrotateNodeInLocalSpace(scene::ISceneNode* node, f32 degs, const core::vector3df& axis);
void moveNodeInLocalSpace(scene::ISceneNode* node, const core::vector3df& distVect);
void revolveNodeInLocalSpace(scene::ISceneNode* node, f32 degs, const core::vector3df& axis, const core::vector3df& pivot);