forked from LeenkxTeam/LNXSDK
Update leenkx/Sources/leenkx/trait/physics/bullet/PhysicsWorld.hx
This commit is contained in:
parent
8d1c2c51bd
commit
94eaba7319
@ -420,7 +420,8 @@ class PhysicsWorld extends Trait {
|
|||||||
var rb: RigidBody = null;
|
var rb: RigidBody = null;
|
||||||
var hitInfo: Hit = null;
|
var hitInfo: Hit = null;
|
||||||
|
|
||||||
if (rayCallback.hasHit()) {
|
var rc: bullet.Bt.RayResultCallback = rayCallback;
|
||||||
|
if (rc.hasHit()) {
|
||||||
#if js
|
#if js
|
||||||
var co = rayCallback.get_m_collisionObject();
|
var co = rayCallback.get_m_collisionObject();
|
||||||
var body = untyped bullet.Bt.Ammo.btRigidBody.prototype.upcast(co);
|
var body = untyped bullet.Bt.Ammo.btRigidBody.prototype.upcast(co);
|
||||||
@ -480,7 +481,8 @@ class PhysicsWorld extends Trait {
|
|||||||
|
|
||||||
var hitInfo: ConvexHit = null;
|
var hitInfo: ConvexHit = null;
|
||||||
|
|
||||||
if (convexCallback.hasHit()) {
|
var cc: bullet.Bt.ClosestConvexResultCallback = convexCallback;
|
||||||
|
if (cc.hasHit()) {
|
||||||
#if js
|
#if js
|
||||||
var hit = convexCallback.get_m_hitPointWorld();
|
var hit = convexCallback.get_m_hitPointWorld();
|
||||||
convexHitPointWorld.set(hit.x(), hit.y(), hit.z());
|
convexHitPointWorld.set(hit.x(), hit.y(), hit.z());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user