-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbullet3.stub.php
108 lines (86 loc) · 2.87 KB
/
bullet3.stub.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php
/**
* @generate-class-entries
* @undocumentable
*/
namespace Bullet;
class World
{
public function setGravity(\GL\Math\Vec3 $gravity): void {}
public function getGravity(): \GL\Math\Vec3 {}
public function addRigidBody(RigidBody $rigidBody): void {}
public function addConstraint(Constraint $constraint, bool $noCollide = false): void {}
public function removeConstraint(Constraint $constraint): void {}
public function stepSimulation(float $timeStep, int $maxSubSteps = 1, float $fixedTimeStep = 0.01666666): void {}
}
interface CollisionShape
{
}
class SphereShape implements CollisionShape
{
public function __construct(float $radius) {}
}
class BoxShape implements CollisionShape
{
public function __construct(\GL\Math\Vec3 $halfExtents) {}
}
class CylinderShape implements CollisionShape
{
public function __construct(\GL\Math\Vec3 $halfExtents) {}
}
class CylinderShapeX implements CylinderShape
{
public function __construct(\GL\Math\Vec3 $halfExtents) {}
}
class CylinderShapeZ implements CylinderShape
{
public function __construct(\GL\Math\Vec3 $halfExtents) {}
}
class StaticPlaneShape implements CollisionShape
{
public function __construct(\GL\Math\Vec3 $normal, float $constant = 0.0) {}
}
interface Constraint
{
}
class Point2PointConstraint implements Constraint
{
public function __construct(
RigidBody $bodyA,
RigidBody $bodyB,
\GL\Math\Vec3 $pivotInA,
\GL\Math\Vec3 $pivotInB
) {}
}
class HingeConstraint implements Constraint
{
public function __construct(
RigidBody $bodyA,
RigidBody $bodyB,
\GL\Math\Vec3 $pivotInA,
\GL\Math\Vec3 $pivotInB,
\GL\Math\Vec3 $axisInA,
\GL\Math\Vec3 $axisInB
) {}
}
class RigidBody
{
public CollisionShape $collisionShape;
public function __construct(CollisionShape $collisionShape, float $mass = 0.0) {}
public function setPosition(\GL\Math\Vec3 $position): void {}
public function getPosition(): \GL\Math\Vec3 {}
public function getLinearVelocity(): \GL\Math\Vec3 {}
public function getAngularVelocity(): \GL\Math\Vec3 {}
public function getOrientation(): \GL\Math\Quat {}
public function setOrientation(\GL\Math\Quat $orientation): void {}
public function setMass(float $mass): void {}
public function getTransform(): \GL\Math\Mat4 {}
public function applyForce(\GL\Math\Vec3 $force, \GL\Math\Vec3 $relPos): void {}
public function applyCentralForce(\GL\Math\Vec3 $force): void {}
public function applyTorque(\GL\Math\Vec3 $torque): void {}
public function applyImpulse(\GL\Math\Vec3 $impulse, \GL\Math\Vec3 $relPos): void {}
public function applyCentralImpulse(\GL\Math\Vec3 $impulse): void {}
public function applyTorqueImpulse(\GL\Math\Vec3 $torque): void {}
public function activate(): void {}
}
function bullet3_test(): void {}