Skip to content

Instantly share code, notes, and snippets.

View stevedekorte's full-sized avatar
💭
Set status

Steve Dekorte stevedekorte

💭
Set status
View GitHub Profile
@stevedekorte
stevedekorte / gist:b5da27201df066b37586a4bced2d4fc9
Created November 8, 2022 23:32
Rapier rotations not getting what was set
CODE:
const a = [-0.0000064798259700182825, -0.0013201627880334854, 0.0000027575993044592906, 0.9999991059303284]
rigidBody.setRotation(new RAPIER.Quaternion(a[0], a[1], a[2], a[3]))
const r = rigidBody.rotation()
console.log("before:", a)
console.log(" after:", [r.x, r.y, r.z, r.w])
OUTPUT: