forked from StrafesNET/strafe-client
fix face_nd
This commit is contained in:
parent
2fc1fcfa80
commit
6005485789
@ -500,7 +500,7 @@ impl MeshQuery<SubmeshFaceId,SubmeshDirectedEdgeId,SubmeshVertId> for Transforme
|
|||||||
fn face_nd(&self,face_id:SubmeshFaceId)->(Self::Normal,Self::Offset){
|
fn face_nd(&self,face_id:SubmeshFaceId)->(Self::Normal,Self::Offset){
|
||||||
let (n,d)=self.view.face_nd(face_id);
|
let (n,d)=self.view.face_nd(face_id);
|
||||||
let transformed_n=self.transform.normal*n;
|
let transformed_n=self.transform.normal*n;
|
||||||
let transformed_d=d.fix_4()+transformed_n.dot(self.transform.vertex.translation);
|
let transformed_d=d*self.transform.det+transformed_n.dot(self.transform.vertex.translation);
|
||||||
(transformed_n,transformed_d)
|
(transformed_n,transformed_d)
|
||||||
}
|
}
|
||||||
fn vert(&self,vert_id:SubmeshVertId)->Planar64Vec3{
|
fn vert(&self,vert_id:SubmeshVertId)->Planar64Vec3{
|
||||||
|
Loading…
Reference in New Issue
Block a user