SweptVolume.java :  » 6.0-JDK-Modules » java-3d » org » jdesktop » j3dfly » utils » vpbehaviors » Java Open Source

Java Open Source » 6.0 JDK Modules » java 3d 
java 3d » org » jdesktop » j3dfly » utils » vpbehaviors » SweptVolume.java
/*
 *  $Header: /cvs/j3dfly/J3dFly/src/org/jdesktop/j3dfly/utils/vpbehaviors/SweptVolume.java,v 1.1 2005/04/20 21:05:14 paulby Exp $
 *
 *                         Sun Public License Notice
 *
 *  The contents of this file are subject to the Sun Public License Version
 *  1.0 (the "License"). You may not use this file except in compliance with
 *  the License. A copy of the License is available at http://www.sun.com/
 *  
 *  The Original Code is Java 3D(tm) Fly Through.
 *  The Initial Developer of the Original Code is Paul Byrne.
 *  Portions created by Paul Byrne are Copyright (C) 2002.
 *  All Rights Reserved.
 *  
 *  Contributor(s): Paul Byrne.
 *  
 **/
package org.jdesktop.j3dfly.utils.vpbehaviors;

import javax.vecmath.Vector3f;

/**
 * Describes the set of rays cast in each of six directions to determine if
 * the view platform is in collision with scene geometry. It is not intended
 * for collision detection between the view platform and 'fast moving' animations
 * in the application.
 *
 * The arrays of rays consist of Vector3f pairs describing the start end
 * end of each ray. During collision detection the start of the ray is transformed
 * by the current ViewPlatform transform and the end of the ray is transformed 
 * by the next ViewPlatform transform.
 *
 * The implementation of VPCollisionInterface will determine which rays are
 * cast, the intent is that only subset of the rays will be cast per frame.
 * For example when the ViewPlatform is moving forward ONLY the frontRays
 * will be cast.
 *
 *
 * @author Paul Byrne
 * @version  1.6, 01/18/02
 */
public abstract class SweptVolume {

    public Vector3f[] frontRays;          // List of rays for this volume
    public Vector3f[] backRays;          // List of rays for this volume
    public Vector3f[] leftRays;          // List of rays for this volume
    public Vector3f[] rightRays;          // List of rays for this volume
    public Vector3f[] upRays;          // List of rays for this volume
    public Vector3f[] downRays;          // List of rays for this volume
}

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.