This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void AddDrag(float area, Vector3 crossProduct, Vector3 centerPoint) | |
{ | |
if (boatRB.velocity != Vector3.zero) | |
{ | |
var angle = Vector3.Angle(crossProduct, boatRB.velocity); | |
if(angle> -90 && angle < 90) | |
{ | |
angle = Mathf.Abs(angle); | |
var areaFactor = Mathf.Clamp(angle, 1, 0); | |
float dragForce = boatRB.velocity.magnitude * boatRB.velocity.magnitude; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Crawler = require("simplecrawler"); | |
var querystring = require('querystring'); | |
var myCrawler = new Crawler("www.geocaching.com", "/login/"); | |
myCrawler.initialProtocol = "https"; | |
myCrawler.acceptCookies = true; | |
myCrawler.on("addcookie", function (cookie) { | |
console.log("Cookie"); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project version="4"> | |
<component name="AntConfiguration"> | |
<defaultAnt bundledAnt="true" /> | |
</component> | |
</project> | |