Fix physics3d js test issue

This commit is contained in:
pandamicro 2015-06-19 10:35:45 +08:00
parent 276ce3a0a7
commit ca989e2aed
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ var Physics3DConstraintDemo = Physics3DTestDemo.extend({
farP = this._camera.unproject(size, farP);
var result = this._world.rayCast(nearP, farP);
if(result.hitObj !== undefined && result.hitObj.getObjType() == cc.Physics3DObject.PhysicsObjType.RIGID_BODY)
if(result.hitObj !== undefined && result.hitObj.getObjType() == jsb.Physics3DObject.PhysicsObjType.RIGID_BODY)
{
var mat = cc.math.mat4GetInversed(result.hitObj.getWorldTransform());
var position = cc.math.mat4TransformPoint(mat, result.hitPosition);