Skip to content

@ue-too/dynamics / index / Fan

クラス: Fan ​

定義: crescent-fan.ts:170

Fan-shaped rigid body (arc plus wedge toward center). SAT logic matches Python Fan.

拡張 ​

コンストラクター ​

コンストラクター ​

new Fan(center, radius, angleSpan, orientationAngle, mass, isStatic, frictionEnabled): Fan

定義: crescent-fan.ts:176

パラメータ ​

center ​

Point = ...

radius ​

number

angleSpan ​

number

orientationAngle ​

number = 0

mass ​

number = 500

isStatic ​

boolean = true

frictionEnabled ​

boolean = false

戻り値 ​

Fan

上書き ​

BaseRigidBody.constructor

プロパティ ​

_angularVelocity ​

protected _angularVelocity: number

定義: rigidbody.ts:74

継承元 ​

BaseRigidBody._angularVelocity


_center ​

protected _center: Point

定義: rigidbody.ts:71

継承元 ​

BaseRigidBody._center


_linearVelocity ​

protected _linearVelocity: Point

定義: rigidbody.ts:73

継承元 ​

BaseRigidBody._linearVelocity


_mass ​

protected _mass: number = 50

定義: rigidbody.ts:72

継承元 ​

BaseRigidBody._mass


_orientationAngle ​

protected _orientationAngle: number = 0

定義: rigidbody.ts:75

継承元 ​

BaseRigidBody._orientationAngle


_staticFrictionCoeff ​

protected _staticFrictionCoeff: number = 0.3

定義: rigidbody.ts:79

継承元 ​

BaseRigidBody._staticFrictionCoeff


angularDampingFactor ​

protected angularDampingFactor: number = 0.005

定義: rigidbody.ts:83

継承元 ​

BaseRigidBody.angularDampingFactor


collisionFilter ​

collisionFilter: CollisionFilter

定義: rigidbody.ts:86

Collision filtering configuration

継承元 ​

BaseRigidBody.collisionFilter


dynamicFrictionCoeff ​

protected dynamicFrictionCoeff: number = 0.3

定義: rigidbody.ts:80

継承元 ​

BaseRigidBody.dynamicFrictionCoeff


force ​

protected force: Point

定義: rigidbody.ts:77

継承元 ​

BaseRigidBody.force


frictionEnabled ​

protected frictionEnabled: boolean = false

定義: rigidbody.ts:81

継承元 ​

BaseRigidBody.frictionEnabled


isMovingStaticBody ​

protected isMovingStaticBody: boolean = false

定義: rigidbody.ts:82

継承元 ​

BaseRigidBody.isMovingStaticBody


isSleeping ​

isSleeping: boolean = false

定義: rigidbody.ts:89

継承元 ​

BaseRigidBody.isSleeping


isStaticBody ​

protected isStaticBody: boolean = false

定義: rigidbody.ts:78

継承元 ​

BaseRigidBody.isStaticBody


linearAcceleartion ​

protected linearAcceleartion: Point

定義: rigidbody.ts:76

継承元 ​

BaseRigidBody.linearAcceleartion


sleepThreshold ​

sleepThreshold: number = 0.01

定義: rigidbody.ts:90

継承元 ​

BaseRigidBody.sleepThreshold


sleepTime ​

sleepTime: number = 0.5

定義: rigidbody.ts:91

継承元 ​

BaseRigidBody.sleepTime


timeAtRest ​

timeAtRest: number = 0

定義: rigidbody.ts:92

継承元 ​

BaseRigidBody.timeAtRest

アクセッサー ​

AABB ​

署名を取得する ​

get AABB(): object

定義: crescent-fan.ts:281

Axis-Aligned Bounding Box for broad phase collision

戻り値 ​

object

max ​

max: Point

min ​

min: Point

Axis-Aligned Bounding Box for broad phase collision

上書き ​

BaseRigidBody.AABB


angularVelocity ​

署名を取得する ​

get angularVelocity(): number

定義: rigidbody.ts:130

Angular velocity (radians/second)

戻り値 ​

number

署名を設定する ​

set angularVelocity(angularVelocity): void

定義: rigidbody.ts:134

Angular velocity (radians/second)

パラメータ ​
angularVelocity ​

number

戻り値 ​

void

Angular velocity (radians/second)

継承元 ​

BaseRigidBody.angularVelocity


center ​

署名を取得する ​

get center(): Point

定義: rigidbody.ts:290

Center position in world coordinates

戻り値 ​

Point

署名を設定する ​

set center(dest): void

定義: rigidbody.ts:294

Center position in world coordinates

パラメータ ​
dest ​

Point

戻り値 ​

void

Center position in world coordinates

継承元 ​

BaseRigidBody.center


linearVelocity ​

署名を取得する ​

get linearVelocity(): Point

定義: rigidbody.ts:298

Linear velocity (pixels/second)

戻り値 ​

Point

署名を設定する ​

set linearVelocity(dest): void

定義: rigidbody.ts:302

Linear velocity (pixels/second)

パラメータ ​
dest ​

Point

戻り値 ​

void

Linear velocity (pixels/second)

継承元 ​

BaseRigidBody.linearVelocity


mass ​

署名を取得する ​

get mass(): number

定義: rigidbody.ts:306

Mass in arbitrary units (affects force response)

戻り値 ​

number

Mass in arbitrary units (affects force response)

継承元 ​

BaseRigidBody.mass


momentOfInertia ​

署名を取得する ​

get momentOfInertia(): number

定義: crescent-fan.ts:222

Moment of inertia (rotational mass)

戻り値 ​

number

Moment of inertia (rotational mass)

上書き ​

BaseRigidBody.momentOfInertia


orientationAngle ​

署名を取得する ​

get orientationAngle(): number

定義: rigidbody.ts:138

Rotation angle in radians

戻り値 ​

number

Rotation angle in radians

継承元 ​

BaseRigidBody.orientationAngle


staticFrictionCoeff ​

署名を取得する ​

get staticFrictionCoeff(): number

定義: rigidbody.ts:310

Static friction coefficient (0-1)

戻り値 ​

number

署名を設定する ​

set staticFrictionCoeff(coeff): void

定義: rigidbody.ts:314

Static friction coefficient (0-1)

パラメータ ​
coeff ​

number

戻り値 ​

void

Static friction coefficient (0-1)

継承元 ​

BaseRigidBody.staticFrictionCoeff

メソッド ​

applyForce() ​

applyForce(force): void

定義: rigidbody.ts:162

パラメータ ​

force ​

Point

戻り値 ​

void

継承元 ​

BaseRigidBody.applyForce


applyForceInOrientation() ​

applyForceInOrientation(force): void

定義: rigidbody.ts:170

パラメータ ​

force ​

number | Point

戻り値 ​

void

継承元 ​

BaseRigidBody.applyForceInOrientation


getAdjacentFaces() ​

getAdjacentFaces(_collisionNormal): object[]

定義: crescent-fan.ts:347

パラメータ ​

_collisionNormal ​

Point

戻り値 ​

object[]

上書き ​

BaseRigidBody.getAdjacentFaces


getCenter() ​

getCenter(): Point

定義: rigidbody.ts:122

戻り値 ​

Point

継承元 ​

BaseRigidBody.getCenter


getCollisionAxes() ​

getCollisionAxes(relativeBody): Point[]

定義: crescent-fan.ts:263

パラメータ ​

relativeBody ​

RigidBody

戻り値 ​

Point[]

上書き ​

BaseRigidBody.getCollisionAxes


getMinMaxProjection() ​

getMinMaxProjection(unitvector): object

定義: crescent-fan.ts:226

パラメータ ​

unitvector ​

Point

戻り値 ​

object

max ​

max: number

min ​

min: number

上書き ​

BaseRigidBody.getMinMaxProjection


getNormalOfSignificantFace() ​

getNormalOfSignificantFace(collisionNormal): Point

定義: crescent-fan.ts:343

パラメータ ​

collisionNormal ​

Point

戻り値 ​

Point

上書き ​

BaseRigidBody.getNormalOfSignificantFace


getOrientationAngle() ​

getOrientationAngle(): number

定義: rigidbody.ts:126

戻り値 ​

number

継承元 ​

BaseRigidBody.getOrientationAngle


getSignificantVertices() ​

getSignificantVertices(collisionNormal): Point[]

定義: crescent-fan.ts:339

パラメータ ​

collisionNormal ​

Point

戻り値 ​

Point[]

上書き ​

BaseRigidBody.getSignificantVertices


isMovingStatic() ​

isMovingStatic(): boolean

定義: rigidbody.ts:146

戻り値 ​

boolean

継承元 ​

BaseRigidBody.isMovingStatic


isStatic() ​

isStatic(): boolean

定義: rigidbody.ts:142

戻り値 ​

boolean

継承元 ​

BaseRigidBody.isStatic


move() ​

move(delta): void

定義: crescent-fan.ts:217

パラメータ ​

delta ​

Point

戻り値 ​

void

上書き ​

BaseRigidBody.move


rotateRadians() ​

rotateRadians(angle): void

定義: rigidbody.ts:118

パラメータ ​

angle ​

number

戻り値 ​

void

継承元 ​

BaseRigidBody.rotateRadians


setLinearVelocity() ​

setLinearVelocity(linearVelocity): void

定義: rigidbody.ts:150

パラメータ ​

linearVelocity ​

Point

戻り値 ​

void

継承元 ​

BaseRigidBody.setLinearVelocity


setMovingStatic() ​

setMovingStatic(movingStatic): void

定義: rigidbody.ts:154

パラメータ ​

movingStatic ​

boolean

戻り値 ​

void

継承元 ​

BaseRigidBody.setMovingStatic


setOrientationAngle() ​

setOrientationAngle(angle): void

定義: rigidbody.ts:158

パラメータ ​

angle ​

number

戻り値 ​

void

継承元 ​

BaseRigidBody.setOrientationAngle


setSleeping() ​

setSleeping(sleeping): void

定義: rigidbody.ts:334

パラメータ ​

sleeping ​

boolean

戻り値 ​

void

継承元 ​

BaseRigidBody.setSleeping


significantVertex() ​

significantVertex(collisionNormal): Point

定義: crescent-fan.ts:319

パラメータ ​

collisionNormal ​

Point

戻り値 ​

Point

上書き ​

BaseRigidBody.significantVertex


step() ​

step(deltaTime): void

定義: crescent-fan.ts:208

パラメータ ​

deltaTime ​

number

戻り値 ​

void

上書き ​

BaseRigidBody.step


updateSleeping() ​

updateSleeping(deltaTime): void

定義: rigidbody.ts:345

パラメータ ​

deltaTime ​

number

戻り値 ​

void

継承元 ​

BaseRigidBody.updateSleeping